echo $$

Post Reply
Message
Author
StefanD.

echo $$

#1 Post by StefanD. »

Hallo,

was bewirkt dieser Befehl?
Was bedeutet die Ausgabe, die Zahl?

Danke!

Descartes

Re: echo $$

#2 Post by Descartes »

>
> was bewirkt dieser Befehl?
>
man echo

siehe Abschnitt "Special Parameters" in "info bash"


Special Parameters
------------------
The shell treats several parameters specially. These parameters may
only be referenced; assignment to them is not allowed.

`$'
Expands to the process ID of the shell. In a `()' subshell, it
expands to the process ID of the invoking shell, not the subshell.


>
> Was bedeutet die Ausgabe, die Zahl?
>
$$ ist eine spezielle Shellvariable in der die aktuelle Prozess-Id gespeichert wird.
Mit "echo $$" kannst du dir diese Prozess-Id anzeigen lassen.

StefanD.

danke!

#3 Post by StefanD. »

.

Post Reply