I keep some bash snippets and copy&paste them when I needed for management.
But I discovered apt-get
cancels script execution.
Here's my script where problematic.
apt-get -y install gcc g++ make cmake perl
cd ~/
mkdir t1
cd t1
I copy & paste this script on OS X Terminal to Ubuntu 12.04 LTS server (fresh install on VM) Script always stop after apt-get
finished.
I run this command with root
account like this.
ssh user1@server
<password…>
sudo su
<password…>
apt-get -y install gcc g++ make cmake perl
cd ~/
mkdir t1
cd t1
Can this be a problem? Or why my script stops after apt-get
finished, and how to make it to continue?