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.

Daniel
  • 372

2 Answers2

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.

αғsнιη
  • 36,350
Chintan
  • 340
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

Daniel
  • 372