Master3395
Regular Contributor
Hello.
I was wondering if someone knows how to cd to the right folder.
To run a sh file?
\\RT-AC88U-EC48\entware\share\www\lighttpd\ths\start.sh
I've tried using cd, to get to the folder, but i can't seem to get away from entware...
Admin@RT-AC88U-EC48:/tmp/mnt/256GB-GoFlex/entware/share/www/lighttpd/ths#
chmod 777 start.sh
./start.sh (Makes an error, that i will be showing below.
./start.sh: line 10: syntax error: unexpected end of file (expecting "do")
This is the "start" file.
# /bin/sh
while true
do
echo Starting Bot
node bot.js
echo Restarting Bot in 5 Seconds...
sleep 5
done
I also tried making the bot start there "forever".
But that didn't give me any good
# /bin/sh
forever ./bot.js
At the end i tried this below.
cd /mnt - then ls, cd to the drives mounted point, cd to entware, and so on
Then i did
opkg install findutils-locate && updatedb && locate entware
https://silversunset.net/dbm/tutori...47-restarting-the-bot-automatically-foreverjs
Adding my two files, that i wish to try.
But i can't seem to find a way to use SSH, to get to the right folder, then run the file.
I was wondering if someone knows how to cd to the right folder.
To run a sh file?
\\RT-AC88U-EC48\entware\share\www\lighttpd\ths\start.sh
I've tried using cd, to get to the folder, but i can't seem to get away from entware...
Admin@RT-AC88U-EC48:/tmp/mnt/256GB-GoFlex/entware/share/www/lighttpd/ths#
chmod 777 start.sh
./start.sh (Makes an error, that i will be showing below.
./start.sh: line 10: syntax error: unexpected end of file (expecting "do")
This is the "start" file.
# /bin/sh
while true
do
echo Starting Bot
node bot.js
echo Restarting Bot in 5 Seconds...
sleep 5
done
I also tried making the bot start there "forever".
But that didn't give me any good
# /bin/sh
forever ./bot.js
At the end i tried this below.
cd /mnt - then ls, cd to the drives mounted point, cd to entware, and so on
Then i did
opkg install findutils-locate && updatedb && locate entware
https://silversunset.net/dbm/tutori...47-restarting-the-bot-automatically-foreverjs
Adding my two files, that i wish to try.
But i can't seem to find a way to use SSH, to get to the right folder, then run the file.
Attachments
Last edited: