I have the following tmux script which is executed successfully only when I navigate to
/dev/shm (that is, after I do
( cat > /dev/shm/script.sh && chmod +x /dev/shm/script.sh && tmux new-session -d '/dev/shm/script.sh; rm /dev/shm/script.sh' ) <<-'EOF' cd /var/www/html wget SOME_FILE sleep 2h tmux kill-session EOF
Why would the script be executed successfully only when I navigate to
/dev/shm and not from any other place in the system?