[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Pipe in einer bash



Frank Dietrich schrieb:

>PIDOF=`ps ax -o pid,comm | awk '/dnsmasq/ {print $1;exit}'`
>echo "PID von dnsmasq: "$PIDOF
>
>  
>

Hi,

Mh, das klingt schon sehr gut. Ist es jetzt noch irgend wie möglich das
ohne awk zu machen. da awk schon wieder ein nicht bash-build in programm
ist. Was ist wenn awk nicht installiert ist. Danke das ist aber trotzdem
ne sehr gute Variante.

Gruß Marco



Reply to: