Is there a way to get a list of running processes on a Linux system, minus the default ones running on every system (i.e. only the ones that were installed/executed after the fact). Can this be accomplished with ps, or any similar tool?
By default system processes you probably mean "daemons" like httpd,nfsd,etc. TTY column in ps output is
Here I am assuming tty as column 2, so depending on your output you might want to change that.
then just run it like "perl script.pl".
With input from lain, same an be achieved in shell script as
I am going to also assume, like the previous answer, that you're referring to daemons as "default", and thus they will be running on tty ?. In this case, the following should work, though unfortunately I'm not in a position to test it here at work.
Quick, dirty, and from a relative newcomer, but there you have it.