|
2009-03-21
, 17:47
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#2
|
Type=Script
|
2009-03-22
, 02:48
|
Posts: 44 |
Thanked: 15 times |
Joined on Jan 2009
@ China
|
#3
|
|
2009-03-22
, 03:11
|
Posts: 44 |
Thanked: 15 times |
Joined on Jan 2009
@ China
|
#4
|
|
2009-03-22
, 03:55
|
|
Posts: 168 |
Thanked: 104 times |
Joined on Feb 2008
@ California, USA
|
#5
|
#!/bin/sh dest=/media/mmc2/gvm-backup.tar ( cd $HOME tar cvf $dest .gvm )
#!/bin/sh src=/media/mmc2/gvm-backup.tar ( cd $HOME if [ -f $src ]; then tar xvf $src else echo "$src doesn't exist" fi )
The Following 2 Users Say Thank You to slvr32 For This Useful Post: | ||
|
2009-03-22
, 10:03
|
Posts: 44 |
Thanked: 15 times |
Joined on Jan 2009
@ China
|
#6
|
BusyBox v1.6.1 (2008-09-18 09:43:17 EEST) Built-in shell (ash) Enter 'help' for a list of built-in commands. ~ $ sudo gainroot Root shell enabled BusyBox v1.6.1 (2008-09-18 09:43:17 EEST) Built-in shell (ash) Enter 'help' for a list of built-in commands. /home/user # cd /home/user/MyDocs /home/user/MyDocs # ls -l drwxr-xr-x 2 user users 8192 Mar 17 23:21 Books -rw-r--r-- 1 user users 77 Mar 22 17:27 GBackup.sh -rw-r--r-- 1 user users 125 Mar 22 17:26 GLaunch.sh -rw-r--r-- 1 user users 135 Mar 22 17:28 GRestore.sh /home/user/MyDocs # chmod a+x GLaunch.sh /home/user/MyDocs # chmod a+x GBackup.sh /home/user/MyDocs # chmod a+x GRestore.sh /home/user/MyDocs # ls -l drwxr-xr-x 2 user users 8192 Mar 17 23:21 Books -rwxr-xr-x 1 user users 77 Mar 22 17:27 GBackup.sh -rwxr-xr-x 1 user users 125 Mar 22 17:26 GLaunch.sh -rwxr-xr-x 1 user users 135 Mar 22 17:28 GRestore.sh /home/user/MyDocs #
|
2009-03-22
, 12:17
|
Posts: 755 |
Thanked: 406 times |
Joined on Feb 2008
@ UK
|
#7
|
-rw-r--r-- 1 user users 77 Mar 22 17:27 GBackup.sh -rw-r--r-- 1 user users 125 Mar 22 17:26 GLaunch.sh -rw-r--r-- 1 user users 135 Mar 22 17:28 GRestore.sh
-rwxr-xr-x 1 user users 77 Mar 22 17:27 GBackup.sh -rwxr-xr-x 1 user users 125 Mar 22 17:26 GLaunch.sh -rwxr-xr-x 1 user users 135 Mar 22 17:28 GRestore.sh
The Following User Says Thank You to codeMonkey For This Useful Post: | ||
|
2009-03-22
, 15:45
|
Posts: 44 |
Thanked: 15 times |
Joined on Jan 2009
@ China
|
#8
|
|
2009-03-23
, 12:27
|
Posts: 3,841 |
Thanked: 1,079 times |
Joined on Nov 2006
|
#9
|
|
2009-03-25
, 11:26
|
Posts: 44 |
Thanked: 15 times |
Joined on Jan 2009
@ China
|
#10
|
#!/bin/sh /usr/bin/gvm/gvm -O yes -z 1.5 -f yes -i D050 -a PLDE -u "Xxx Xxx:1107" -S
/home/user/MyDocs # sh Pleco.sh Garnet (tm) VM v1.0 (Prod-Release) - Build 611976 (Nov 25 2008-18:07:55) GVM: Unknown option -S
Tags |
desktop, gvm, scripts |
|
I've been trying to write scripts to run the Garnet VM. I've been following the directions from Mara's post on creating executable scripts:
http://www.internettablettalk.com/wi..._using_OS_2008
My problem: after copying the *.sh files over to /home/user/MyDocs, the chmod +x doesn't seem to do anything. I assumed that *.desktop files would be created automatically, but I seem to be mistaken. After I execute "chmod" for each file, there are no visible changes in the /home/user/MyDocs folder.
I typed up the scripts using TextWrangler (a donateware text editor on the Mac that is friendly to programmers). I've started off by creating these scripts to backup, restore and launch the Garnet VM:
To Launch (saved as GLaunch.sh):
To Backup the gvm.store (saved as GBackup.sh):
1. I opened XTerm and did "sudo gainroot"
2. I did "cd /home/user/MyDocs"
3. I did "ls" to make sure the script files were present
4. I did "chmod +x *.sh" for each of the script files (where "*" is the name of each of the files
5. I then did "ls" again to see if there were any changes in the directories, but there were none. I even checked to see if there were hidden files (checking the green "H" in emelfm2).
I started to manually create *.desktop files for these scripts, but I realized that I didn't know the syntax for such files. I've taken the following example from one of burmashave's posts. For someone who is more experienced, will this do?
1. Why the chmod command doesn't seem to be working for me
2. Can I just create *.desktop files manually as above and transfer these to /usr/share/applications/hildon and have the executable show up in "Extras"?
3. If the *.desktop file looks okay, will it then execute my chmod'd *.sh files as they are now?
Thanks!
By the way, I'm running Diablo on an n810.
Update:
Well, I went ahead and double-checked the form for a *.desktop file on the wiki and wrote one in TextWrangler and copied it over to /usr/shared/applications/hildon. Sure enough, it showed up in Extras, but, when I clicked on it, nothing happened. Here is the code I used for the GLaunch.desktop file:
[Desktop Entry]
Encoding=UTF-8
Version=0.1
Type=Application
Name=GLaunch
Exec=/home/user/MyDocs/GLaunch.sh
X-Osso-Type=application/x-executable
Comment=to launch GVM using set parameters
Last edited by Palmleavr; 2009-03-21 at 17:53. Reason: update