![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| script to monitor process running on server and posting a mail if any process is dead | pradeepmacha | Shell Programming and Scripting | 12 | 10-17-2008 12:08 AM |
| Running app after logout and monitoring | ncatdesigner | High Level Programming | 1 | 04-21-2008 02:39 AM |
| How to create a dummy process of a process already running? | shambhu | UNIX for Advanced & Expert Users | 3 | 08-31-2007 07:22 AM |
| need help with this background wget process. | mikey1090 | Shell Programming and Scripting | 2 | 04-12-2007 11:40 PM |
| Top running process | caprikar | UNIX for Advanced & Expert Users | 1 | 02-17-2004 07:14 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Keep process running (wget) and logout
well, i have only been learning about linux, unix and shells for a few days.
For my online game to work, i need run a file each 10 seconds. Running that file will update mysql data, causing my online game to "tick". This adds resources and fights battles in game. I know that i need to use a bakground process, a wget commad. Code:
#!/bin/bash while true; do wget my_url/tick.php sleep 10 done exit 0 Can anyone hp me, or advise me how to do this? Thanks, Mike |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
i suppose you can run the script with the 'nuhup' and the '&'. this should keep it running after logout.
|
|
#3
|
||||
|
||||
|
Quote:
Cheers ZB |
|
#4
|
|||
|
|||
|
hahahha... yes. sorry about the typo.
Quote:
|
|||
| Google The UNIX and Linux Forums |