LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-16-2003, 07:12 AM   #1
ifan
LQ Newbie
 
Registered: Jul 2003
Posts: 3

Rep: Reputation: 0
Running a command in a screen session


Is there anyway I can run a command in a screen session fron a file called by crontab?

I connect a VPN from a screen session which is already running the ssh-agent, I would like to issue the command to start the vpn in screen session from an executable file (trying to automate stuff) if the VPN connection goes down

I can use pidof to check wether the agent is running or not, and the use if/then/else to tell it what to do..... just don't know how to run the command in the screen session.

Cheers

Ifan
 
  


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
Running lg3d in session mode f3ua Linux - Software 0 11-15-2005 01:48 PM
End Session Command bmccorm2 Fedora 1 10-16-2005 02:14 PM
Running a non-X session on Fedora Core 4 Nuvious Linux - Software 1 09-11-2005 03:02 AM
running X in a screen session jumanji Linux - General 2 04-22-2004 01:57 PM
how do I copy my screen from a terminal session? rdaves@earthlink.net Linux - Newbie 1 05-31-2001 12:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:23 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
Open Source Consulting | Domain Registration