Writing a script on DM500S

Vin047

Member
Joined
Sep 15, 2009
Messages
19
Reaction score
0
Points
0
Age
35
My Satellite Setup
Sky Satellite with Dreambox 600PVR
My Location
UK, London
Im trying to write a simple SH script that downloads a few files from my web server (custom bouquets). I keep running into various problems so I decided to take it step by step. Heres my script so far

Code:
#!/bin/sh
cd /var/etc
echo "Updating..."

I saved this as /var/etc/testdir/update.sh with permission 777
Then I telnet into my box and run

sh /var/etc/testdir/update.sh

and I get

Code:
cd: 2: can't cd to /var/etc

Any help? Its a clone D500S with latest Open-PLI beta image (216)

Cheers
 

Vin047

Member
Joined
Sep 15, 2009
Messages
19
Reaction score
0
Points
0
Age
35
My Satellite Setup
Sky Satellite with Dreambox 600PVR
My Location
UK, London
nvm, got it sorted
 
Top