* Summary: Shell strangeness and kill by name
@ 1998-07-23 18:08 Burch Seymour RTPS
0 siblings, 0 replies; only message in thread
From: Burch Seymour RTPS @ 1998-07-23 18:08 UTC (permalink / raw)
To: tru64-unix-managers
I had asked about why my kill by name command:
kill `ps -ef | grep csci2_t2 | grep -v grep | cut -f 2 -d ' ' `
didn't work as I expected it to. Several people noted that cut is
probably not doing what I expect it to as multiple spaces can be
interpreted as multiple fields. They suggest I use awk instead ala':
kill `ps -e | grep csci2_t2 | grep -v grep | awk '{ print $1}'`
This seems to work better.
I also received a perl script to kill by name. For now, the command
line thing above is more in line with my needs.
Thanks to all who responded:
Ralph Rodriguez
Steven
Mullin, Stephen
David Warren
Nestor Ruiz
and any who's response is still in the queue somewhere...
--
This message from, Encore Computer Corporation MS/108
Burch Seymour 6901 W Sunrise Boulevard
Senior Software Engineer Fort Lauderdale, Fl 33313
email: bseymour@encore.com Vox: (954)316-4480 Fax: (954)316-4454
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1998-07-23 18:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-07-23 18:08 Summary: Shell strangeness and kill by name Burch Seymour RTPS
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox