You are not logged in.

#1 2015-01-20 22:27:10

geo909
Member
Registered: 2008-09-07
Posts: 309

Attaching to screen session the run of a python script

Hi all,

I am having trouble running a python script in a new window attached to an existing screen session. In particular, I am doing the following:

I first start a screen session like so:

$ screen -dmS mysession

Now I try to attach to mysession a new window running test.py:

$ screen -S mysession -X screen python2 test.py

or

$ screen -S mysession -X screen python2 /path/to/test.py

None of the last two lines works. There is no new window in mysession, nor there is any error message. I am a bit confused because, for instance, something like this does open a new window with htop running in it:

$ screen -S mysession -X screen htop -C

Where is the mistake in my tries?

Note: I have posted the same question here. I know double posting is not considered polite, but this is kind of urgent (I was hoping I would start running some jobs soon) so I thought I'd ask for some extra help. I'll update the other post when one gets answered.

Offline

#2 2015-01-22 13:22:44

geo909
Member
Registered: 2008-09-07
Posts: 309

Re: Attaching to screen session the run of a python script

bump

Please, anybody?

Offline

Board footer

Powered by FluxBB