Sponsored Content
Full Discussion: nohup & mpiexec problems
Top Forums UNIX for Dummies Questions & Answers nohup & mpiexec problems Post 302412770 by erin85 on Tuesday 13th of April 2010 12:20:58 PM
Old 04-13-2010
nohup & mpiexec problems

Hi everyone -

I'm trying to start a run of LAMMPS (which takes an input file) with mpiexec on multiple processors. I want to combine this with nohup so that I can log off the node. I've used the syntax below successfully on one cluster, but it doesn't work on the new one I'm using. Any suggestions would be helpful.

First, I have a script:
Code:
#!/bin/bash
mpiexec -np 8 /home/foo/lmp_openmpi < /home/foo/inputfile

Now, I call that script with nohup via:
Code:
nohup sh script > nohup.out &

This starts the lammps job just fine, on 8 processors. However, when logging out of the node, the jobs die. Checking the nohup.out, I get the final line:
"mpiexec noticed that process rank 1 with PID 37372 on node whatever exited on signal 1 (Hangup)."

Isn't that what nohup is supposed to be preventing? I've seen the redirecting to /dev/null thing mentioned around the web, but I'm either using it wrong, or it's ineffective. Help!?!

Last edited by vbe; 04-13-2010 at 01:48 PM.. Reason: code tags...
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

UFSDUMP & UFSRESTORE problems

Hi, guys ! I need some expert help on following problem: When trying to restore content of a machine using another backup machine using Ufsdump/Ufsrestore, it worked on /local1, but when attemting to do the same on /local2,/local3 and /local4, I get permission problems. Running superuser does... (9 Replies)
Discussion started by: DGoubine
9 Replies

2. Shell Programming and Scripting

Execute Script using nohup and &

Hi all, I have one script test.sh for which I pass two arguments. In the same script I need to submit this script in background using nohup. My script like this and it is working in HP-UX os but not Solaris. #! /bin/sh if then MTR_PID=$$ export MTR_PID echo "test.sh $1 $2... (3 Replies)
Discussion started by: sridhar_423
3 Replies

3. UNIX and Linux Applications

nohup and & versus functions

when i have a function definition and function call in my script , i am unable to run my script in background with nohup.. Help me out please..... (3 Replies)
Discussion started by: venugopalsmartb
3 Replies

4. Shell Programming and Scripting

echo & sed problems

I need a script to to instert the following line into my postfix master.cf file: flags=Rq user=filter argv=/etc/postfix/disclaimer -f ${sender} -- ${recipient}if I use echo I get the line truncated: :~ echo flags=Rq user=filter argv=/etc/postfix/disclaimer -f ${sender} -- ${recipient}... (3 Replies)
Discussion started by: barrydocks
3 Replies

5. Programming

Background (nohup * &) SSH command block possible?

Hello, I am trying to find a way to send several sequential commands via SSH to a remote box in a single command. Thoughts so far: 1) Can I put them into a function and call the function within the ssh command? e.g. ssh <targetserver> $(functionx) No - then it calls the function in... (4 Replies)
Discussion started by: doonan_79
4 Replies

6. UNIX for Advanced & Expert Users

SCO 6.0 & VMware problems

I've moved a physical server over to VMWare ESXi 5.1 using SCO 6.0 with MP4. For whatever reason, people are occasionally getting kicked out or are closing out their telnet session and it is leaving their processes running. When this happens, the sar %idle drops from 98-95% down to 25-20%. ... (1 Reply)
Discussion started by: Carlitos71
1 Replies

7. Shell Programming and Scripting

Saving nohup output to a file other than nohup.out

Shell : bash OS : Oracle Linux 6.4 I want to save the ouput of a nohup command to file other than nohup.out . Below are my 3 attempts. For both Attempt1 and Attempt2 , the redirection logs the output correctly to the output file. But I get the error "ignoring input and redirecting stderr to... (7 Replies)
Discussion started by: kraljic
7 Replies

8. UNIX for Dummies Questions & Answers

How to get a timestamp when running nohup & from a shell?

Hi, I am running nohup cp & in a shell script. How do I get a timestamp so I can get a timing of how long the copy took? Roughly, the script does something like below: date nohup cp -rp /files/source /files/target & date I am mainly wanting to know how long it took for the... (9 Replies)
Discussion started by: newbie_01
9 Replies

9. UNIX for Dummies Questions & Answers

Difference between & and nohup &

Hi All, Can anyone please help me understanding what the difference between the below two? 1. script.sh & 2. nohup script.sh & (2 Replies)
Discussion started by: Anupam_Halder
2 Replies

10. Red Hat

Nohup with ampersand & process gets disconnected

For years I have spawned shell scripts with nohup and ampersand and they run whether or not I stay logged in. Recently a client told us that we had to set a keep alive timeout on all of our Redhat 7.6 Linux servers. Our sysadmin set the following parameters in the sshd_config file on all of our... (10 Replies)
Discussion started by: gandolf989
10 Replies
IPCLUSTER(1)															      IPCLUSTER(1)

NAME
ipcluster - IPython parallel computing cluster control tool SYNOPSIS
ipcluster {piexec,local,mpirun,pbs,ssh} [options] DESCRIPTION
ipcluster is a control tool for IPython's parallel computing functions. IPython cluster startup. This starts a controller and engines using various approaches. Use the IPYTHONDIR environment variable to change your IPython directory from the default of .ipython or _ipython. The log and security subdirectories of your IPython directory will be used by this script for log files and security files. POSITIONAL ARGUMENTS
The first positional argument should be one of: {mpiexec, local, mpirun, pbs, ssh}, which are the available cluster types. For detailed help on each, type "ipcluster TYPE --help". Briefly: local run a local cluster mpirun run a cluster using mpirun (mpiexec also works) mpiexec run a cluster using mpiexec (mpirun also works) pbs run a pbs cluster ssh run a cluster using ssh, should have ssh-keys setup OPTIONS
-h, --help show help message and exit EXAMPLE
ipcluster local -n 4 This command will start 4 IPython engines on the local computer. SEE ALSO
ipython(1),ipcontroller(1),ipengine(1) AUTHOR
ipcluster is a tool that ships with IPython, created by the IPython Development Team. This manual page was written by Stephan Peijnik <debian@sp.or.at>, for the Debian project (but may be used by others). Modified by Fer- nando Perez <Fernando.Perez@berkeley.edu> for inclusion in IPython. October 28, 2008 IPCLUSTER(1)
All times are GMT -4. The time now is 01:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy