View Single Post

  #4 (permalink)  
Old 04-06-2006, 04:30 AM
sparky sparky is offline
Member
User
 
Join Date: Mar 2006
Posts: 35
Rep Power: 0
sparky
Default

I was just playing about right silly little short cut type scripts to help manage out server
heres two silly examples that did not work
Code:
echo -e "changing directory"
cd /var/www/html
ls | more
Was hoping it would leave me in that dir so i could then choose which website i wanted to edit..
But when script exits i u return to dir where u started script from.

Then i wrote 3 little scripts for TeamSpeak one checks status one stops but the 3rd which should restarted ts did not work.
The first 2 are all run as root and they work fine but the 3rd changes users and does not work..

Code:
cd /home/ts/tss2_rc2
su ts
./teamspeak2-server_startscript start
The others are the same except with out su ts

Just some silly little thing i was playing about with not inportant just help you learn and move on to biggger things
Reply With Quote