xtacocorex
December 22nd, 2005, 04:55 PM
Is it possible for bash to do something automatically when a program exits without having to create a wrapper script to call a program?
I know about the exit signals, but I'd like to have the command line spit out text when a command exits, most likely based on it's exit status, sorta like having it talk back to you.
I know it sounds like a lame idea for it to talk back, but I need something to do while I'm on semester break besides playing Halo. Otherwise I'd attempt to figure out how to get FORTRAN to accept command line arguments, which is pretty much near impossible from the research I've already done.
Any help given will be credited in the final result.
I know about the exit signals, but I'd like to have the command line spit out text when a command exits, most likely based on it's exit status, sorta like having it talk back to you.
I know it sounds like a lame idea for it to talk back, but I need something to do while I'm on semester break besides playing Halo. Otherwise I'd attempt to figure out how to get FORTRAN to accept command line arguments, which is pretty much near impossible from the research I've already done.
Any help given will be credited in the final result.