What's a simple way to run a command, say, 8 hours from now? I can think of this way:
nohup bash -c "sleep 28800 ; ./mycommand.sh" &
Is there a more "proper" way?
You can use the
For more information, options, examples, and others see the Ubuntu Manpage Repository
You can also use convenient shorthands, like
The example also demonstrates how you can pipe actions into
Yes, you can set a cron job.
For example if now the time is 14:39:00 and today is friday, 30 august, you can add the following cron job (to be executed after 8 hours) in your crontab file using
Use the Gnome-based GUI for
The introduction of the CronHowto suggests using the
Run it by using the Unity Dash (or other applications menu) to look for Scheduled Tasks or running
I figured out a quick and dirty way to do this before I found out
Say you want your script to run at noon:
Say you want it to run tomorrow at noon (today is Nov 24 for me):