how to write a script
Hi Guys
Can anyone tell me how to write a command that open2 mozila firefoc at 3 p.m. on monday using CentOs 5. |
|
Quote:
Here is an old but still valid article about job scheduling in Linux: http://www.linuxjournal.com/article/4087. Hope this helps. |
i think this should help you
#!/bin/bash ######################################### ######### open first firefox ########### ######################################### firefox & ######################################### ######### wait for 2sec ################# ######################################### sleep 2s ######################################## ########## start second instance######## firefox & exit(0) schedule this as a cron job to whatever day and time you need is this what you are looking for ? hope this helps you |
You might want the -new-window option documented at https://developer.mozilla.org/en/Command_Line_Options
|
Quote:
This link: http://www.codecoffee.com/tipsforlinux/articles/23.html explains more. |
Or you can use the "--display :0" option for Firefox when launching from cron.
|
Do you want it to happen just once or every monday?
|
Thanks Guys for the replies.
I was somewhere away. Regarding the last question by devnull10 every monday if possible. |
All times are GMT -5. The time now is 09:43 AM. |