LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-19-2015, 07:11 AM   #1
globaluty
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.

Code:
#! /bin/sh
/home/dido/user/hlds_run -game cstrike +ip IP -port PORT --pidfile /home/dido/user/pid.pid  > 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, 10:37 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: Sutton, MA. USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu
Posts: 4,087
Blog Entries: 10

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
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:
Code:
#! /bin/sh
To be:
Code:
#!/bin/sh
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.
 
  


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


All times are GMT -5. The time now is 10:27 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration