Hi there, i am wondering how to do the following, i want to run three commands in a sequence:
time , emerge , sendmail
time is standard just to tell me how long the emerge (gentoo) took. Sendmail simply runs a bash script which sends an email to my office when the command is done.
the main issue is that i want to type a lot of options in the command line which will cahnge from time to time as i want to install different programs eg. "myemerge -u firefox" and i and the system to copy the options preceeding myemerge and then paste it to the actual command like.
I type : "myemerge firefox vlc thunderbird"
"time emerge -u firefox vlc thunderbird && sendmail"
how can I make a script which pulls out what i type in the command when i run it and then inserts it in the appropriate place when the whole command sequence is run?