mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Linux

Reply
 
Thread Tools
Old 2013-01-21, 15:22   #23
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

37×263 Posts
Default

Quote:
Originally Posted by pinhodecarlos View Post
I'm having dependencies issues.
Afraid I can't help you there -- I run CentOS.
chalsall is offline   Reply With Quote
Old 2013-04-01, 10:58   #24
pinhodecarlos
 
pinhodecarlos's Avatar
 
"Carlos Pinho"
Oct 2011
Milton Keynes, UK

494710 Posts
Default

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
resume.sh

Code:
#! /bin/bash

nice -n 19  ./msieve -i L1746.ini -s L1746.dat -nf L1746.fb -nc3 -ncr -v -t 8
pinhodecarlos is offline   Reply With Quote
Old 2013-04-01, 18:09   #25
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3·29·83 Posts
Default

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).
Dubslow is offline   Reply With Quote
Old 2013-04-01, 18:27   #26
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

3,739 Posts
Default

Code:
gnome-terminal -e /path/to/resume.sh
Note the "-e" for execute

However, killing the terminal will kill the process.
paulunderwood is offline   Reply With Quote
Old 2013-04-01, 18:29   #27
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3×29×83 Posts
Default

Quote:
Originally Posted by paulunderwood View Post
Code:
gnome-terminal -e /path/to/resume.sh
Note the "-e" for execute

However, killing the terminal will kill the process.
Ah yes, I thought I might be missing something. Thanks

As for the terminal taking the process with it, that's true for any terminal and any foreground process.
Dubslow is offline   Reply With Quote
Old 2013-04-01, 18:40   #28
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

1110100110112 Posts
Default

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
paulunderwood is offline   Reply With Quote
Old 2013-04-01, 20:07   #29
pinhodecarlos
 
pinhodecarlos's Avatar
 
"Carlos Pinho"
Oct 2011
Milton Keynes, UK

3×17×97 Posts
Default

Paul and Dubslow, next time I reboot the machine I will see what happens with the commands you guys gave. Thank you.
pinhodecarlos is offline   Reply With Quote
Old 2013-04-12, 07:13   #30
pinhodecarlos
 
pinhodecarlos's Avatar
 
"Carlos Pinho"
Oct 2011
Milton Keynes, UK

115238 Posts
Default

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
How do I add a delay, see bold text, to the shell script?

Thank you in advance,

Carlos
pinhodecarlos is offline   Reply With Quote
Old 2013-04-12, 09:23   #31
pinhodecarlos
 
pinhodecarlos's Avatar
 
"Carlos Pinho"
Oct 2011
Milton Keynes, UK

115238 Posts
Default

Found, "sleep X" seconds.

Carlos

Last fiddled with by pinhodecarlos on 2013-04-12 at 09:23
pinhodecarlos is offline   Reply With Quote
Reply

Thread Tools


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

All times are UTC. The time now is 07:50.


Sat Jul 17 07:50:19 UTC 2021 up 50 days, 5:37, 1 user, load averages: 1.51, 1.30, 1.29

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.