Hello,

Oh, that's because of env... If you had #!/usr/bin/python directly...
changing to #!/usr/bin/python and running  "pidof -x xend" did the work.

The "env" is in he original Xend script but there is no problem for me to remove it.

Thanks,
Amir





From: Oleg Goldshmidt <[EMAIL PROTECTED]>
Reply-To: linux-il@linux.org.il
To: "Amir Binyamini" <[EMAIL PROTECTED]>
CC: linux-il@linux.org.il
Subject: Re: "pidof" on a process (which was ran by passing arguments from the command li
Date: 04 Jul 2005 11:40:59 +0000

"Amir Binyamini" <[EMAIL PROTECTED]> writes:

> No.
> "pidof -x xend" returns an empty string.

Oh, that's because of env... If you had #!/usr/bin/python directly it
should have worked. One level of indirection too many...

Modify xend or try this:

pname () { /bin/ps auxww | /bin/egrep "$@" | /bin/grep -v egrep; }
pnum () { pname $@ | /bin/awk '{print $2}'; }

$ pnum xend

is likely to work.


--
Oleg Goldshmidt | [EMAIL PROTECTED] | http://www.goldshmidt.org

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]


_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to