also @ TechSpot: Battlefield: Bad Company 2 GPU Performance In-depth
Welcome to the TechSpot OpenBoards. Please read the FAQ if you have any questions. Login to participate.

Go Back   TechSpot OpenBoards > Operating Systems and Software > The Alternative OS

Best way to run a few commands at once?

Closed Thread
Bookmark Thread Tools
  #1  
Old 04-01-2009
TechSpot Member
 
Location: Virginia
Member since: Nov 2006, 94 posts
System specs
Best way to run a few commands at once?

Hey everyone,



I have an IRC bot that I am setting up, to start it I have to go into SSH and type something like....


cd location/
NOHUP ./botapp


Now that is not too hard in itself, but it gets tiring after a while to keep logging into SSH to get it going.

Is it possible to get the script jump-started in PHP? And PHP execute these commands?


Now I know PHP may not be the best option, but I just wanted to see if there is a better way to group the commands and possibly execute them at once. Possibly without having to login to SSH. Python script?


Thanks!


--Daniel L
  #2  
Old 04-01-2009
TechSpot Enthusiast
 
Member since: Jul 2006, 393 posts
Php can run linux commands.

Why not just use a shell or bash script though? You could even set up a cronjob for it so it will run hourly/weekly/etc, or set it to run when you ssh in by adding it to your .bashrc file. Or you can have it set to run when your computer boots...

Go with a shell script It's what it's there for
To remove this ad, sign in. To register for a new account, click here.
Closed Thread

Thread Tools


Similar Topics
Topic Category Replies Last Post
CS 1.6 commands help needed PC Gaming and Consoles 0 08-08-2008 01:47 AM
where can i find commands Windows OS 7 11-03-2006 01:44 PM
Anyone knows of a list of Run commands? Windows OS 4 03-09-2006 03:35 AM
Does anyone know any good dos fix commands for xp pro Windows OS 1 03-17-2005 03:55 AM


All times are GMT -4. The time now is 09:00 PM.