Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 05-12-2005, 11:12 AM   #1
LQ Newbie
Registered: May 2005
Posts: 3

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

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/ and if that completes to print something like 'started'. so far have something like this for the script:


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

./usr/home/username/SRCDS/ && 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 ( works from prompt...

Here is the second file contents (
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, 04:41 PM   #2
LQ Newbie
Registered: May 2005
Posts: 3

Original Poster
Rep: Reputation: 0


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 04:46 PM
unable to run perl script using browser madhuri Linux - Distributions 1 11-22-2005 02:19 PM
How do I run a browser in a terminal? Ultwe Linux - Newbie 5 06-30-2005 04:55 PM
How to run an executable from browser ??? dileepkk Programming 2 08-22-2004 03:13 AM
on Network Up Script run? On Battery power run script? v2-ncl Linux - General 0 12-08-2003 09:34 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:02 PM.

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