![]() |
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? |
All times are GMT. The time now is 23:24. |
vBulletin® Version 3.8.8