BonsaiRack
10-22-2008, 05:05 PM
I have a long rsync command, that I didnt want to type each time.
So I made an executable called "syncback" and put it in my /bin folder.
Now, when I type syncback at prompt, the rsync command execute itself perfectly.
I want to perfect this command a bit more to do the following:
Execute itself in background, so when I execute the commande at prompt, a message says "Rsync running in background" and im immediatly taken back to prompt.
Second, I want the result of this command to email itself to a specific email adress, much like my cron is doing when executing a command.
Any idea how I should do so ?
So I made an executable called "syncback" and put it in my /bin folder.
Now, when I type syncback at prompt, the rsync command execute itself perfectly.
I want to perfect this command a bit more to do the following:
Execute itself in background, so when I execute the commande at prompt, a message says "Rsync running in background" and im immediatly taken back to prompt.
Second, I want the result of this command to email itself to a specific email adress, much like my cron is doing when executing a command.
Any idea how I should do so ?
