Joined: 04 May 2005 Posts: 15238 Location: Paradox Realm
Posted: Fri 06 Jul 2012, 02:00 Post subject:
How to Kill, to Bash a program to death in Slacko?
Trying to open a program in bash script
displaying a file (that works)
and then close or kill the program
(using Puppy Slacko 5.3.3.2)
Is it really so hard?
None of this stuff seems to work . . .
Joined: 18 May 2008 Posts: 4787 Location: Kingwood, TX
Posted: Mon 16 Jul 2012, 10:48 Post subject:
ugg - please only use killall as a last resort
program args &
programpid=$!
... do stuff ...
kill $programpid
... and that way you won't piss off your users because you killed their other opened instance of <program> that had weeks of unsaved data opened ... in other words, don't use a machete when the right tool is a scalpel _________________ Check out my github repositories. I may eventually get around to updating my blogspot.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum