LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 05-12-2005, 12:12 PM   #1
GetMooked
LQ Newbie
 
Registered: May 2005
Posts: 3

Rep: Reputation: 0
.sh Script to run another via browser


OK,
Im trying to get a script to run another script I have written elsewhere on the system.

I have setup CGI in a apache to run the scripts from cgi-bin, so i can run a script called 'start_css', which I want it to call a script located at /usr/home/username/SRCDS/css.sh... and if that completes to print something like 'started'. so far have something like this for the script:

Code:
#!/bin/sh

echo "Content-type: text/plain; charset=iso-8859-1\n\n"
echo

./usr/home/username/SRCDS/css.sh && echo "Started!"

echo "CS:S Server Started."
echo "Attached to Screen 'css'."
only thing is the script isn't called or isnt working correctly as called from the web folder. I know the second script (css.sh) works from prompt...

Here is the second file contents (css.sh):
Code:
#!/bin/sh
echo "*Starting CS:Source Server..."
sleep 1
screen -A -m -d -S css ./srcds_run -console -game cstrike +map de_dust +maxplayers 12 -debug
cheers for any help
 
Old 05-12-2005, 05:41 PM   #2
GetMooked
LQ Newbie
 
Registered: May 2005
Posts: 3

Original Poster
Rep: Reputation: 0
any1?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to run perl script using browser madhuri Debian 3 12-02-2005 05:46 PM
unable to run perl script using browser madhuri Linux - Distributions 1 11-22-2005 03:19 PM
How do I run a browser in a terminal? Ultwe Linux - Newbie 5 06-30-2005 05:55 PM
How to run an executable from browser ??? dileepkk Programming 2 08-22-2004 04:13 AM
on Network Up Script run? On Battery power run script? v2-ncl Linux - General 0 12-08-2003 10:34 AM


All times are GMT -5. The time now is 03:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration