View Single Post
Old 03-12-2009, 02:54 PM   #1
scotsman
Enthusiast
scotsman doesn't litterscotsman doesn't litter
 
Posts: 32
Karma: 106
Join Date: Mar 2009
Device: irex DR1000S
A way to execute files without shell access?!?

I am in the puzzling situation that I do not know whether I actually got the shell access downloaded:
1. After registering with MAC, cf-contents in "attachment" section etc., no download when synchronizing.
2. No way to click on .sh files in my documents: shown with a "?" in the icon.
3. BUT: I can run scripts when I put an appropriate .desktop file in /System/Desktop/ on the CF-card, e.g.

[Desktop Entry]

Name=Xournal

Type=Application

Exec=/usr/local/bin/xournal

Name[en_US]=Xournal


[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=runscript
Type=Application
Exec=/media/mmcblk0p1/Programs/scripts/script.sh

So either I have shell access, but it only works this way, or I have not got it, and then this is a way of running scripts without requesting shell access.

It works for all proper shell scripts and for some exectuables in the root file system, but not for all (e.g. not for xshell, mrxvt, abiword), sadly. Via the shell scripts and redirected output thereof I can basically do whatever I want on the machine, and have full access to all folders starting from "/".

Any ideas? Maybe someone who has a device definitely without shell access can try running scripts this way.

Thanks!
scotsman is offline   Reply With Quote