This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to stop Inetd


It didn't work but i tried this that worked from hand in the bash cygwin:
ps |awk '/INETD/{print $1}'|xargs kill

but unfortunately by Perl code it didn't:
I tried:
system(" c:\\cygwin\\bin\\bash.exe('ps |awk '/INETD$/{print $1}|xargs kill')")
or
system("c:\\cygwin\\bin\\ps.exe |c:\\cygwin\\bin\\awk.exe '/INETD/{print 
$1}'|c:\\cygwin\\bin\\xargs.exe c:/cygwin/bin/kill.exe");

neither by replacing \\ by /.

Thanks


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]