Re: using screen in a script

"Dave Sheludko" <[email protected]>
Newsgroups gmane.org.user-groups.mlug.main
Message-ID <[email protected]>
hey brett,

You'll probably want to do something like

export SCREENDIR=/home/someuser/tmp
screen -d -m /path/to/whatever/you/want_to_execute.sh

The SCREENDIR environment var just tells screen where to store it's PID's,
and I had trouble getting it to work until I added that first...

cheers,

dave.

> G'day all,
>
> I trying to write acouple small scripts to save entering the same
> parameters all the time for acouple of programs. The problem I'm having
> is I would like to run them in a detacted screen session but as yet have
> been unable to get the screen command to play nice..
>
> Thanks,
> Brett..
>
> _______________________________________________
> Melbourne Linux Users Group (Australia)
> Edit your settings: http://lists.mlug.org.au
> Are you an Open Source Developer? Look at:
> Oracle SPACE Sweepstakes - http://www.mlug.org.au/oracle.php
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.