We help IT Professionals succeed at work.
Get Started

Cron job in Linux? Please explain for me this script.

YANKAUSKAS
YANKAUSKAS asked
on
603 Views
Last Modified: 2013-12-15
I'm using LAMMPS software to simulate the movement of moleculars. After screating script for LAMMPS, I type:
lmp_linux<in.test
If run it parallel, I use MPICH2:
mpiexec -np 4 lmp_linux<in.test
Then I have to use job scheduler, I create script: lmp.sh (using cat ?)
Script:
#!/bin/bash
#
#$ -cwd
#$ -j y
#$ -S /bin/bash
#
num_np=8
/share/apps/bin/mpiexec -n $num_np /share/apps/bin/lmp_linux<in.test
After that I use qsub:
qsub lmp.sh (cça SGE)
I use qstat to check, it still work, but I only have an error file: lmp.sh.o83
mpiexec_dudu5.local: cannot connect to local mpd (/tmp/mpd2.console_coffee); possible causes:
1. no mpd is running on this host
2. an mpd is running but was started without a ''console'' (-n option)
In case 1, you can start an mpd on this host with:
mpd&
and you will be able to run jobs just on this host.
For more details on starting mpds on a set of host, see the MPICH2 installation Guide.
What I have to do now? Please suggest me!
Also please explain for me the structure of the script lmp.sh.
Comment
Watch Question
This problem has been solved!
Unlock 1 Answer and 1 Comment.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE