Avatar of YANKAUSKAS
YANKAUSKASFlag for United States of America

asked on 

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

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.
LinuxLinux Distributions

Avatar of undefined
Last Comment
WizRd-Linux
ASKER CERTIFIED SOLUTION
Avatar of WizRd-Linux
WizRd-Linux
Flag of Australia image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Linux
Linux

Linux is a UNIX-like open source operating system with hundreds of distinct distributions, including: Fedora, openSUSE, Ubuntu, Debian, Slackware, Gentoo, CentOS, and Arch Linux. Linux is generally associated with web and database servers, but has become popular in many niche industries and applications.

71K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo