Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-19-2015, 06:11 AM   #1
LQ Newbie
Registered: Aug 2015
Posts: 4

Rep: Reputation: Disabled
My starting script doesn't work in new terminal

Hello, everybody!

My question is in the title of this thread. My starting script doesn't work when I open a new terminal. I should first start my process manual, after that I can stop the process and start it with the starting script.

Here is the script.

#! /bin/sh
/home/dido/user/hlds_run -game cstrike +ip IP -port PORT --pidfile /home/dido/user/  > CONSOLE.log 2>&1 &
From /hlds_run further are options for starting of gameserver and they are correct.

Any ideas why my script doesn't start the process in a new terminal?
Old 08-20-2015, 09:37 AM   #2
Registered: Mar 2011
Location: Sutton, MA. USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu
Posts: 5,589
Blog Entries: 12

Rep: Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959
Couple of things and I'm likely out of my realm regarding hlds_run, completely not being a gamer.

First, the script probably should have no SPACE in the shebang line, change:
#! /bin/sh
To be:
Next please clarify. You're saying that you can type in an hlds_run command and it works. And once you do that, you can run your script, and it also works. The issue here is that you open a new terminal, and try to first run the script and it doesn't work, and won't work until you manually type a successful hlds_run command.

To me this is one of two possibilities. One is that you're typing a slightly different command manually than you have in your script. Two is that it's not your script, it's your environment or the game engine or something which requires interactive or something to be set up which ends up getting set up the first time the command gets run manually, and then all is fine following that.


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
[SOLVED] letter 'e' doesn't work in Terminal tennis_slacker Slackware 9 07-09-2011 12:27 AM
Terminal doesn't work properly jaguarm Linux - Software 7 06-05-2010 04:33 PM
Terminal-server: local devices doesn't work r_vilaboa Mandriva 0 02-17-2006 04:20 PM
localdevices doesn't work in Mandriva terminal-server r_vilaboa Linux - Networking 0 12-29-2005 02:14 AM
Mouse doesn't work in terminal window. djKale Linux - Newbie 2 02-01-2005 09:38 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:41 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