so I would like to know how to create a script the performs three basic commands.
sudo su - Admin cd ~/AMP ./ampinstmgr -a
This is what I got, I have also given it 777 perms.
#! /bin/sh # /etc/init.d/run.sh # # Some things that run always touch /var/lock/run # Carry out specific functions when asked to by the system case "$1" in start) sudo su - Admin cd ~/AMP ./ampinstmgr -a ;; stop) ;; *) exit 1 ;; esac exit 0