LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 12-22-2008, 03:12 AM   #1
darklor
LQ Newbie
 
Registered: Dec 2008
Posts: 1

Rep: Reputation: 0
screen command doesn't start new session


I have recently installed hlds on my server (slackware 12) and i wrote a script to start counter strike. It was working fine, until i wrote a stop script i got from a site on the net. after i ran it, my start script no longer started a new session (screen).

the start script:
Code:
#!/bin/sh
screen -A -m -d -S cs-server /scrds_l/hlds_run -console -game cstrike +map de_dust2 +maxplayers 16 -autoupdate
the stop script
Code:
#!/usr/bin
screen -dr cs-server -X quit
ANY help is greatly appriciated.
 
Old 12-22-2008, 07:04 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,570

Rep: Reputation: 510Reputation: 510Reputation: 510Reputation: 510Reputation: 510Reputation: 510
Dunno, WFM

Code:
alucard@karrde:~$ screen -A -m -d -S cs-server bash
You have new mail in /home/alucard/Maildir/
alucard@karrde:~$ screen -list
There are screens on:
        26447.pts-2.karrde      (Detached)
        10609.cs-server (Detached)
2 Sockets in /var/run/screen/S-alucard.

alucard@karrde:~$ screen -dr cs-server -X quit
alucard@karrde:~$ screen -list
There is a screen on:
        26447.pts-2.karrde      (Detached)
1 Socket in /var/run/screen/S-alucard.

alucard@karrde:~$ screen -A -m -d -S cs-server bash
alucard@karrde:~$ screen -list
There are screens on:
        26447.pts-2.karrde      (Detached)
        10650.cs-server (Detached)
2 Sockets in /var/run/screen/S-alucard.
 
  


Reply

Tags
screen, script, session, shell


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to send a command to a screen session? ThaHabbis Linux - Software 9 02-01-2014 05:01 AM
Starting a command in an already-running screen session Wynd Linux - General 1 10-24-2007 03:10 PM
Creating a screen session in an existing session Frits of waterplant Linux - Newbie 4 01-18-2007 04:53 AM
Command to start remote KDE session on Debian The_Fed Linux - Newbie 1 04-19-2004 04:31 PM
Running a command in a screen session ifan Linux - Newbie 0 07-16-2003 07:12 AM


All times are GMT -5. The time now is 08:16 PM.

Main Menu
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