What's new

Web GUI $PATH

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

asususer0009

New Around Here
Hi

first post, please be gentle...

I have written some custom scripts in /jffs/scripts and have been able to add this directory, to the $PATH via the custom config (/jffs/configs/profile.add).

I can start putty and just enter pp.sh to run my custom script, however in the web gui (http://192.168.1.1/Tools_RunCmd.asp) I have to enter the full path (jffs/scripts/pp.sh) to be able to run my script.

Is there a way to disable this need to enter the full path.

Ian
 
No luck, you'll have to type the full path.
I tried to add a symlink to /www but it's read only.
Here's the output:
Code:
ln -s /jffs/scripts/pp.sh /www/pp.sh
ln: /www/pp.sh: Read-only file system
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top