1

I'm trying to delay the command python /opt/splashtop-streamer/SRStreamer.pyc by ten seconds at startup, everything I have tried is failing. If I remember correctly a command with sh at the beginning was the only way I ever got this to work. I've looked all over the internet for the answer.

Both of the answers work but there's a bug I can't fix that has something to do with these solutions.

3

2 Answers 2

5

Prefixing the command with sleep 10 && should do the work if I correctly understood your question. Like this

bash -c 'sleep 10 && python /opt/splashtop-streamer/SRStreamer.pyc'

Try man sleep for more options.

1
  • The program won't load at startup with this command. I think I got it to load before with a sh command.
    – Daniel
    Oct 18, 2014 at 12:18
0

This is what works: sh -c "sleep 10 && python /opt/splashtop-streamer/SRStreamer.pyc" but it's leading to another problem which I posted here: Another copy of splashtop streamer is running

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .