image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
Thread Tools
  #1  
Old March 21st, 2008, 09:48 PM
Registered User
 
Join Date: Jun 2003
Location: oregon
Posts: 145
blackoutspy is on a distinguished road
Creating a screen, and run a command in it

I find my self using screen a for things such as rsync and synergy but I struggle to find a way to programmatically create a screen and execute a command in it.

From the documentation I see that you can use the '-X' flag to tell a session to execute a command, but I haven't been able to work. I'm running commands like 'screen -Sr test ls' to create a screen named test and run ls inside it. I get no complaints about this syntax, but when i attach the screen i see no proof that the command was run.

What obvious thing am I missing here?
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


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


Mac Support® Version 3.7.0 Beta 5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.