-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed

Description
I have a freshly installed Ubuntu server 16.04.2 and tmux 2.1. When tmux isn't running (i.e when I'm in a regular session) I ran the following tmux heredocument which I use to download, install, use, and delete certain programs in a timeout in the background:
(
cat > /dev/shm/my_script.sh &&
chmod +x /dev/shm/my_script.sh &&
tmux new-session -d '/dev/shm/my_script.sh; rm /dev/shm/my_script.sh'
) <<-'EOF'
# apt-get install utility
sleep 5h
# apt-get purge utility
EOF
In this new system, the heredocument fails to work - I run it and it seems to have been runned successfully but nothing changes in the system - No tmux session will start and no utility will be installed.
I would thank you dearly for your opinion on this.
Metadata
Metadata
Assignees
Labels
No labels