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
|