LinuxQuestions.org
Review your favorite Linux distribution.
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 01-27-2010, 06:13 PM   #1
Super TWiT
Member
 
Registered: Oct 2009
Location: Cyberville
Distribution: Debian
Posts: 132

Rep: Reputation: 16
Launch script to be interpreted on screen session?


I am on an xubuntu live cd setting up gentoo linux. I use screen to make sure that all my compiling and whatnot runs in the background and I won't accidently exit it. I have a script that I have written that autoruns starting my screen session, whenever I insert my thumbdrive. A seprete script should be passed along to screen telling it to chroot into my gentoo setup. However, whenever I use screen -X ./myscript.sh it says that it is an unknown command. How can I pass it along to screen?
 
Old 02-16-2010, 01:59 PM   #2
jvaldivia
Member
 
Registered: Sep 2007
Distribution: Debian Lenny
Posts: 61
Blog Entries: 2

Rep: Reputation: 19
Not sure if I understand, you want to run the command on an already running screen session ?

You can create a new one using screen -dmS NAME Command-sets

And running screen -ls you will have the list of screen running:

There is a screen on:
1661.ushare_screen (02/16/10 08:48:10) (Detached)
1 Socket in /var/run/screen/S-root.

if is detached you can just attach to it.

screen -r 1661.ushare_screen

To detach again press control C and Control D

You just need to script that.

I create a good screen script you can check it here: http://soad1982.blogspot.com/2009/07...search-results
 
  


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
Failed to execute dbus-launch to autolaunch D-Bus session wds Linux - Desktop 1 04-21-2012 06:39 PM
Creating a screen session in an existing session Frits of waterplant Linux - Newbie 4 01-18-2007 05:53 AM
How do I associate launch.ica on client so I can run a Citrix session? bret Linux - Newbie 3 05-25-2005 02:50 AM
Mandrake 10 Riva TNT 2 launch additional session problem neranjana Mandriva 0 07-05-2004 01:20 AM
impossible to launch a terminal session xnnc Mandriva 7 09-15-2003 07:39 PM


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