tb303
Supreme Member
- Dec 18, 2011
- 1,238
- 909
I have a simple bash script like this
On my own hosting I can start it like this and be able to close the shell session and keep the script running
But when I tried to set it up on someone elses hosting it doesnt keep running after session is closed.
I have also tried CTRL+Z, bg and then disown which doesnt work either.
Confused now, why would this work on one host and not the other?
This probably doesnt belong in the lounge but Im not sure where it would best go. Maybe someone like @jazzc or another mod could move it somewhere more appropriate if thats the case.
Code:
#!/bin/bash
while :
do
wget -O lastwget https://url
sleep 12
done
On my own hosting I can start it like this and be able to close the shell session and keep the script running
Code:
nohup scriptname &
But when I tried to set it up on someone elses hosting it doesnt keep running after session is closed.
I have also tried CTRL+Z, bg and then disown which doesnt work either.
Confused now, why would this work on one host and not the other?
This probably doesnt belong in the lounge but Im not sure where it would best go. Maybe someone like @jazzc or another mod could move it somewhere more appropriate if thats the case.