Sponsored Content
Top Forums Shell Programming and Scripting Keep process running (wget) and logout Post 99219 by mikey1090 on Wednesday 15th of February 2006 01:02:48 PM
Old 02-15-2006
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

that code runs the process in the ofreground. i want to exit Putty, logiut, and keep that process running for ever.

Can anyone hp me, or advise me how to do this?

Thanks, Mike
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

need help with this background wget process.

I run an online game, and every 10 seconds or so i need to "run" a file. In other words in needs to be executed. Its a PHP file. The file updates vital things in my game, each time it does it its know as a "tick". Here is the code i am using. (wget... (2 Replies)
Discussion started by: mikey1090
2 Replies

2. Programming

Running app after logout and monitoring

Hello! I just programmed a very simple app, it's function is to report every minute the state of the memory and cpu and put it to and xml. All this stuff is working ok since I'm logged in into the machine, but i want it to run as a service, how can I do that?? P.S: Any one knows how can I... (1 Reply)
Discussion started by: ncatdesigner
1 Replies

3. UNIX for Dummies Questions & Answers

Keep process running on logout

Hey All, I'm logging in via an SSH shell. I'm wondering if there's a way to execute a command and it not die when I close my terminal window (or rather, logout of the SSH shell). Thanks, Nathan (3 Replies)
Discussion started by: NathanWarden
3 Replies

4. Shell Programming and Scripting

UniX Process not getting logout.

Hi, We have UNIX menu. when we exit the menu the processes are not getting log out. please suggest me how to log out the process after exit from the UNIX Menu. Regards, laknar. (3 Replies)
Discussion started by: laknar
3 Replies

5. Shell Programming and Scripting

script to monitor process running on server and posting a mail if any process is dead

Hello all, I would be happy if any one could help me with a shell script that would determine all the processes running on a Unix server and post a mail if any of the process is not running or aborted. Thanks in advance Regards, pradeep kulkarni. :mad: (13 Replies)
Discussion started by: pradeepmacha
13 Replies

6. UNIX for Dummies Questions & Answers

Finding apache process id that is spawned by a wget

Hi, I have a situation where I am writing a programme that runs a series of long running PHP scripts that can take anything from 20 minutes to 10 hours to execute. I have a solution half implemented where I use via php exec(wget <location to command>) and get the process id back. This... (1 Reply)
Discussion started by: mrploddy
1 Replies

7. UNIX for Advanced & Expert Users

How to keep program running after logout

Hello everyone. I am logged into a computer through ssh. I would like to run a program and have it keep running after I log out without screen (i forgot to run it). For example: ssh server user/comp~$ top & 12021 exit after that: ssh server user/comp~$ (something, maybe shell... (5 Replies)
Discussion started by: lepetal
5 Replies

8. BSD

Process remians in Running state causing other similar process to sleep and results to system hang

Hi Experts, I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state. On doing cat /proc/<pid>wchan showing the "__init_begin" in the output. Can you please help me here... (0 Replies)
Discussion started by: naveeng
0 Replies

9. UNIX for Advanced & Expert Users

Process remians in Running state causing other similar process to sleep and results to system hang

Hi Experts, I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state. On doing cat /proc/<pid>wchan showing the "__init_begin" in the output. Can you please help me here... (6 Replies)
Discussion started by: naveeng
6 Replies

10. Shell Programming and Scripting

Command to get exact tomcat process I am running ignoring other java process

Team, I have multiple batchjobs running in VM, if I do ps -ef |grep java or tomcat I am getting multiple process list. How do I get my exact tomcat process running and that is unique? via shell script? (4 Replies)
Discussion started by: Ghanshyam Ratho
4 Replies
ggz(7)								  GGZ Gaming Zone							    ggz(7)

NAME
ggz - The GGZ Gaming Zone DESCRIPTION
The GGZ Gaming Zone is a standards-conforming online gaming infrastructure which provides many applications and games to people who like to play on the internet or in local networks. APPLICATIONS
There isn't a single executable named ggz, instead a multitude of programs is available to the user, and even more which operate on the system level or are used by developers and administrators. Users will most likely want to connect to a GGZ server on the internet, such as ggz://live.ggzgamingzone.org, to play games against other people. Core clients are used to perform this task. GAMES
Games are usually launched by the GGZ server, with corresponding game clients running on the user's desktop. Plenty of games are available for GGZ, most of them coming from the GGZ project itself but several independent game projects do now provide GGZ support. While some GGZ game clients are suited for online gaming only, others also run locally like normal games happen to do. Those will be found in the desktop's application menu. FILES
/usr/bin GGZ applications, tools, and the games which provide single player mode. /usr/lib(d) GGZ game client and server libraries. /usr/share/ggz(d) Data files for game clients and servers. CONFORMING TO
GGZ Design Document and Protocol Reference, available at http://www.ggzgamingzone.org/docs/design/ GGZ Client-Client Protocol Reference, available at http://www.ggzgamingzone.org/docs/design/clientspec/ GGZ Server-Server Protocol Reference, available at http://www.ggzgamingzone.org/docs/design/serverspec/ Freedesktop.org specifications for desktop integration of games and applications, more information at http://www.freedesktop.org/ File Hierarchy Standard for unix-derived operating systems, at http://www.pathname.com/fhs/ SEE ALSO
ggz_h(3), ggzcore_h(3), ggzmod_h(3), libggz(3), libggzcore(3), libggzmod(3), attributes(5), ggz.modules(5), gnome-interfaces(5), ggz(6), ggz-config(6) GGZ Gaming Zone: http://www.ggzgamingzone.org/ AUTHORS
The GGZ Development Team <ggz-dev@mail.ggzgamingzone.org> Last edited by Michal Pryc, Sun Microsystems Inc., 2008. The GGZ Development Team 0.0.14 ggz(7)
All times are GMT -4. The time now is 08:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy