![]() |
[N900] Script with desktop shortcut
Hi All,
Basically i want to the following commands to run as a script when i press the shortcut on my desktop. Code:
sudo gconftool -s /apps/osso/hildon-home/task-shortcuts-size -t int 62 |
Re: [N900] Script with desktop shortcut
2 Attachment(s)
Hi,
Copy the script (as user) at the following folder and give it execute rights: Quote:
The copy the .desktop file at: Quote:
|
Re: [N900] Script with desktop shortcut
or simply use Desktop Command Execution Widget
|
Re: [N900] Script with desktop shortcut
How can I do the same and run my script as root? Thanks, sorry to bump an old thread.
|
Re: [N900] Script with desktop shortcut
Assuming you have rootsh installed
Code:
echo "sh /path/to/script" | root |
Re: [N900] Script with desktop shortcut
So something like:
Exec="sh /usr/local/bin/BlueSkyResize.sh" | root is enough? thanks Jon! |
Re: [N900] Script with desktop shortcut
Exec=echo "sh /usr/local/bin/BlueSkyResize.sh" | root
|
Re: [N900] Script with desktop shortcut
JonWW, another problem...
I've tried what you've said doing the following: Quote:
What can I do to get around this? Thanks again. |
Re: [N900] Script with desktop shortcut
Quote:
Code:
#!/bin/sh Cheers |
Re: [N900] Script with desktop shortcut
Saturn, thank you, although that didn't work.
I'm having this issue where I can't run the below commands in a script, for whatever reason. I'm probably doing something wrong. I can run the commands manually, after I've typed 'root', else I get 'no such file or directory' and 'does not exist' errors. Could you assist? If you need more info please don't hesistate to ask, there is some on the neopwn howto thread as I was trying to troubleshoot there to no avail. Summerising what I said, running the script doesn't work. But if I run this command, once I've rooted, it works. Code:
rmmod wl12xx; rmmod mac80211; rmmod cfg80211; insmod /home/user/MyDocs/neo/compat.ko; insmod /home/user/MyDocs/neo/rfkill_backport.ko; insmod /home/user/MyDocs/neo/cfg80211.ko; insmod /home/user/MyDocs/neo/mac80211.ko; insmod /home/user/MyDocs/neo/wl1251.ko; insmod /home/user/MyDocs/neo/wl1251_spi.ko Code:
#!/bin/sh Code:
: not foundh: line 2: Code:
-rwxr-xr-x 1 root staff there is probably some fundamental flaw the in way im doing things, i just cant seem to figure it. hope you can help. Thanks again. K |
Re: [N900] Script with desktop shortcut
OK,
Put this in a script (using leafpad for example, but not notes) called myscript.sh in the folder /home/user/ Make it execulable: chmod 755 /home/user/myscript.sh Code:
#!/bin/sh /home/user/myscript.sh If it does what you need then in your desktop file replace the exec line with: Exec=/home/user/myscript.sh |
Re: [N900] Script with desktop shortcut
So if you type each command manually, then it works fine?
But if all commands are in a script then it doesn't? You could try putting a sleep command inbetween each command, I don't know if that would work. |
Re: [N900] Script with desktop shortcut
ooh, you changed your post while i was writing too..
How did you make the script? using notes or in windows? |
Re: [N900] Script with desktop shortcut
Using Mac TexEdit, converted files to plantext. Uploaded via sftp on FileZilla.
|
Re: [N900] Script with desktop shortcut
1 Attachment(s)
Quote:
|
Re: [N900] Script with desktop shortcut
Quote:
I ****ing love you. Ah, you're lucky I don't know you IRL, I might just have to rape you! I'm gonna change the .desktop files now and make sure it does indeed work. Thanks! You're awesome! |
Re: [N900] Script with desktop shortcut
Quote:
|
Re: [N900] Script with desktop shortcut
Quote:
Linux uses LF to denote new lines Windows uses CRLF to denote new lines Do Macs use CR to denote new lines? I think they might. Linux throws a wobbly at CR new line characters saying stuff like 'no such file or directory' and 'does not exist' errors. |
Re: [N900] Script with desktop shortcut
still not working for me, can you explain to me step by step, thanks
Quote:
|
Re: [N900] Script with desktop shortcut
Hi!
I would like a shortcut that 1. opens X terminal 2. Runs nohup x11vnc -forever& 3. And then waits there until I do a Ctrl+C I have tried with a /usr/local/bin/StartVNCserver.sh with Code:
#!/bin/sh Code:
[Desktop Entry] Code:
Exec=osso-xterm Code:
Exec=osso-xterm "nohup x11vnc -forever&" How can I do it? |
Re: [N900] Script with desktop shortcut
Guessing here, try adding
Code:
sleep 100000 |
Re: [N900] Script with desktop shortcut
Thanks for the tip, but still nothing. I thought I try something simple, but I cant even do this with a script:
1. Start x terminal 2. run the command ls |
Re: [N900] Script with desktop shortcut
Quote:
Code:
#!/bin/sh Edit: Or not. I just tried running osso-xterm -e "fennec &", and it worked exactly the same as just osso-xterm -e "fennec". Oh well, guess you can't use that sort of flag with -e... |
Re: [N900] Script with desktop shortcut
Quote:
Code:
#!/bin/sh Code:
#!/bin/sh |
Re: [N900] Script with desktop shortcut
try this, make a script (say "xvncnohup.sh)":
Code:
#!/bin/sh make a desktop file with the line Exec=osso-xterm "/usr/bin/xvncnohup.sh" Nicolai |
Re: [N900] Script with desktop shortcut
Quote:
It works, thank you! :D |
Re: [N900] Script with desktop shortcut
hi..what if i want to show the output of the script?for example,
on the .desktop entry, the exec line is like this Code:
Exec=/bin/busybox sh -c 'echo /path/to/script.sh | sudo gainroot' i put the script at /home/user.. how do i get the .desktop to show the output of the script? |
Re: [N900] Script with desktop shortcut
anyone? =)
|
Re: [N900] Script with desktop shortcut
?????i don't see
|
Re: [N900] Script with desktop shortcut
hello guys,
i need some help out here, i downloaded a script (evil ap.sh) and i was wondering if i can link it to the Desktop (like the ones in the pwnie express image) so that i would press the icon and the script would run automatically instead of "cd" in xterm to mydocs and execute it. any help appreciated and thanks in advance |
Re: [N900] Script with desktop shortcut
is there any script that showing realtime network (gsm/wifi) speed..?
it showing on congky feature, and would be nice to have one on my DECW. thank in advance. |
Re: [N900] Script with desktop shortcut
Quote:
What you mean with DECW? |
Re: [N900] Script with desktop shortcut
Quote:
Dissipation and Ellipticity of the Chandler Wobble |
Re: [N900] Script with desktop shortcut
Quote:
But seriously, halftux, does nload work for you? I just heard first time of that package, installed and tried out. But it segfaults after a few seconds. Normally Stephan's packages are okay. |
Re: [N900] Script with desktop shortcut
Quote:
|
Re: [N900] Script with desktop shortcut
Quote:
|
Re: [N900] Script with desktop shortcut
Quote:
|
Re: [N900] Script with desktop shortcut
As mentioned by Stephane in the first post of his announcement :rolleyes:
|
All times are GMT. The time now is 23:27. |
vBulletin® Version 3.8.8