![]() |
2010-06-27
, 19:45
|
Posts: 726 |
Thanked: 345 times |
Joined on Apr 2010
@ Sweden
|
#2
|
The Following User Says Thank You to Joorin For This Useful Post: | ||
![]() |
2010-06-27
, 19:51
|
|
Posts: 1,169 |
Thanked: 1,174 times |
Joined on Jan 2010
@ sunderland
|
#3
|
![]() |
2010-06-27
, 19:54
|
|
Posts: 1,169 |
Thanked: 1,174 times |
Joined on Jan 2010
@ sunderland
|
#4
|
![]() |
2010-06-27
, 20:10
|
|
Posts: 1,169 |
Thanked: 1,174 times |
Joined on Jan 2010
@ sunderland
|
#5
|
![]() |
2010-06-27
, 20:46
|
|
Posts: 1,169 |
Thanked: 1,174 times |
Joined on Jan 2010
@ sunderland
|
#6
|
![]() |
2010-06-27
, 21:02
|
Posts: 726 |
Thanked: 345 times |
Joined on Apr 2010
@ Sweden
|
#7
|
sudo cp -r /home/user/MyDocs/rtcom-messaging-ui.launch Recursive copy of argument 1 /usr/bin/ argument 2 killall argument 3 rtcom-messaging-ui to destination
ls && ls or ls ; ls
The Following User Says Thank You to Joorin For This Useful Post: | ||
![]() |
2010-06-27
, 21:11
|
|
Posts: 27 |
Thanked: 20 times |
Joined on Jun 2010
@ Cologne
|
#8
|
The Following User Says Thank You to willi_iam For This Useful Post: | ||
![]() |
2010-06-27
, 22:02
|
|
Posts: 1,169 |
Thanked: 1,174 times |
Joined on Jan 2010
@ sunderland
|
#9
|
![]() |
2010-06-27
, 22:28
|
|
Posts: 27 |
Thanked: 20 times |
Joined on Jun 2010
@ Cologne
|
#10
|
#!/bin/sh command1 command2
#!/bin/sh cp -r /home/user/MyDocs/rtcom-messaging-ui.launch /usr/bin/ && killall rtcom-messaging-ui
chmod u+x /home/user/bin/$filename
Exec=osso-xterm -e "sudo /home/user/bin/$filename"
/home/user/bin/$filename
The Following User Says Thank You to willi_iam For This Useful Post: | ||
i have a desktop file that i need to copy a file, and then kill a process,
looks like this so far:
Exec=osso-xterm 'sudo cp -r /home/user/MyDocs/rtcom-messaging-ui.launch /usr/bin/'
Exec=osso-xterm 'sudo killall rtcom-messaging-ui'
but the second part is not doing anything
also tried it in one single command like this:
Exec=osso-xterm 'sudo cp -r /home/user/MyDocs/rtcom-messaging-ui.launch /usr/bin/ killall rtcom-messaging-ui'
but still the killall part does nothing
both commands work if i enter them seperately in xterm,
but again, i need all this in a desktop file so i can run it with the click of a button,
can any of you clever souls help!
born to rage against them