![]() |
|
|
#23 |
|
If I May
"Chris Halsall"
Sep 2002
Barbados
973110 Posts |
|
|
|
|
|
|
#24 |
|
"Carlos Pinho"
Oct 2011
Milton Keynes, UK
115238 Posts |
I'm running a sh script under terminal, it is a NFS@Home post-processing job. How do I start resume.sh script to start under terminal on the Ubuntu Startup Application Menu? Do I only need to give the path to the folder where resume.sh file is? Will it start with terminal open or it will start hidden? I just feel better to check on the terminal the LA progress. Thank you. Carlos
start.sh Code:
#! /bin/bash nice -n 19 ./msieve -i L1746.ini -s L1746.dat -nf L1746.fb -v -nc -t 8 Code:
#! /bin/bash nice -n 19 ./msieve -i L1746.ini -s L1746.dat -nf L1746.fb -nc3 -ncr -v -t 8 |
|
|
|
|
|
#25 |
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
3·29·83 Posts |
Can you provide a screenshot of this menu?
You ought to be able to get it started in a terminal by making the command "gnome-terminal /path/to/resume.sh". In all likely hood you'd need the full path to the script (unless you've messed with PATH in ~/.bashrc). |
|
|
|
|
|
#26 |
|
Sep 2002
Database er0rr
3,739 Posts |
Code:
gnome-terminal -e /path/to/resume.sh ![]() However, killing the terminal will kill the process. |
|
|
|
|
|
#27 | |
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
160658 Posts |
Quote:
![]() As for the terminal taking the process with it, that's true for any terminal and any foreground process. |
|
|
|
|
|
|
#28 |
|
Sep 2002
Database er0rr
3,739 Posts |
It might be safer to do this:
Code:
cd /path/to/program/ && gnome-terminal -e ./resume.sh
Last fiddled with by paulunderwood on 2013-04-01 at 18:50 |
|
|
|
|
|
#29 |
|
"Carlos Pinho"
Oct 2011
Milton Keynes, UK
3·17·97 Posts |
Paul and Dubslow, next time I reboot the machine I will see what happens with the commands you guys gave. Thank you.
|
|
|
|
|
|
#30 |
|
"Carlos Pinho"
Oct 2011
Milton Keynes, UK
3×17×97 Posts |
Starting with "gnome-terminal -e /path/to/resume.sh"works but now I have an issue with msieve. This problem also happens under windows, msieve stalls on LA resume when the computer is rebooted due to the fact that the OS is not idle so a delay must be added, like this:
Code:
#! /bin/bash wait X seconds until do the next command nice -n 19 ./msieve -i SF1229.ini -s SF1229.dat -nf SF1229.fb -ncr -nc3 -v -t 4 Thank you in advance, Carlos |
|
|
|
|
|
#31 |
|
"Carlos Pinho"
Oct 2011
Milton Keynes, UK
3·17·97 Posts |
Found, "sleep X" seconds.
Carlos Last fiddled with by pinhodecarlos on 2013-04-12 at 09:23 |
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| I need a laptop... | Dubslow | Linux | 4 | 2012-01-09 17:01 |
| Best Laptop ever? | hhh | Hardware | 5 | 2007-02-12 20:58 |
| $100 laptop | paulunderwood | Hardware | 3 | 2005-11-24 19:35 |
| laptop 24/7??? | OmbooHankvald | Hardware | 16 | 2005-11-08 15:14 |
| Laptop CPU | ndpowell | Hardware | 1 | 2005-07-07 21:10 |