From: Burch Seymour RTPS <bseymour () ns ! encore ! com>
To: tru64-unix-managers
Subject: Summary: Shell strangeness and kill by name
Date: Thu, 23 Jul 1998 18:08:30 +0000 [thread overview]
Message-ID: <96078715811894.tru64-unix-managers.marc@archive.invalid> (raw)
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
reply other threads:[~1998-07-23 18:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox