Error when running a job on SSH


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Error when running a job on SSH
# 1  
Old 02-17-2017
Error when running a job on SSH

Hi all

this is the first script I submit to SSH and I got this error immediately:

Code:
Post job file processing error; job (my job number)-hpc on host inode18/0

Unable to copy file /var/spool/torque/spool/(my job number)-hpc.OU to (my user and director)
*** error from copy
Permission denied (publickey,password,hostbased).
lost connection
*** end error output

how can I solve this issue?

thanks in advance.

Emy


Moderator's Comments:
Mod Comment Please use CODE tags as required by forum rules!

Last edited by RudiC; 02-17-2017 at 09:50 AM.. Reason: Added CODE tags.
# 2  
Old 02-17-2017
Show your code.
# 3  
Old 02-17-2017
this is the .sh file

Code:
#!/bin/sh
#PBS -N cp2k
#PBS -j oe
#PBS -q bigmem
#PBS -m be
#PBS -M My email
date
cd CP2K
cd Cs2BiAgCl6
load module apps/cp2k-3.0
cp2k.ssmp -i testmoba.inp -o testmoba.out
date

---------- Post updated at 11:00 AM ---------- Previous update was at 10:49 AM ----------

the cp2k is in Fortran 2003

Last edited by Don Cragun; 02-17-2017 at 08:26 PM.. Reason: Add CODE and ICODE tags.
# 4  
Old 02-20-2017
Welcome Emy,


I'm sorry, but I don't see how SSH is involved here at all. Can you show us how you call it?

The script is Bourne Shell, so the load module apps/cp2k-3.0 may not be doing what you expect at all. Can you show us:-
  • how you run this
  • where SSH is involved
  • the OS and version of the remote host. The output from ssh user@host "uname -a" would be useful.
  • the output from which load or whence load on the host where it needs to run.


Thanks, in advance,
Robin

Last edited by rbatte1; 02-20-2017 at 07:44 AM.. Reason: Added a welcome message for a new member
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Error while running a script through cron job

Hi Team, When i am running the below query manually it is giving me the right output i.e. export PATH=/usr/sbin:/usr/bin:/sbin:/bin:$PATH ADMIN=abc@abc.com CPU_HIGH=`sar|awk '{print $9}'|sort -n|head -5|sed -n 5p` CPU_MAX=`echo "scale=3; 100-$CPU_HIGH" | bc` CPU_LOW=`sar|awk '{print... (13 Replies)
Discussion started by: Ekamjot
13 Replies

2. Shell Programming and Scripting

CRON job still running?

Hi All, I am writing a script that will eventually be executed by a cron job every 15 minutes. I want to make sure that my logic/script doesn't get executed if a previous job is still running. What would be the best way to handle that scenario? I was thinking to make my script create a temporary... (1 Reply)
Discussion started by: rdogadin
1 Replies

3. Shell Programming and Scripting

Make a job always running.

Hi All, i want to make a job as always running job so that whenever it recieve a input file the job should process the file. Please help me with this. (3 Replies)
Discussion started by: mahesh300182
3 Replies

4. Solaris

Cron job is not running

Hi, I have set up the crontab as follows. root@IDC4VASAPP07 # crontab -l 0-59 * * * * /var/tmp/r.sh 0-59 * * * * date >> /var/tmp/log root@IDC4VASAPP07 # r.sh is as follows. root@IDC4VASAPP07 # cat r.sh #!/bin/bash dt1=$(perl -e 'use POSIX;print strftime... (10 Replies)
Discussion started by: SunilB2011
10 Replies

5. Shell Programming and Scripting

command job not running

Hi, I have an autosys box job and 2 command jobs. When i force start the box job the command jobs are moving to 'Active' state but are not running. I have tried various options for the start times and run windows but doesnt seem to work. Any help is appreciated update_job: job1.jil... (1 Reply)
Discussion started by: userscript
1 Replies

6. UNIX for Dummies Questions & Answers

crontab job not running

Hi all, down here part of the scheduled job in crontab (AIX Version 5) i have problem running jspPRE-ALL. i verrify permissions and privileges (the others job are working good) if i run the job in command line it work correctly # # Aggiornamento doni e continuity 00 02 * * 2-6... (5 Replies)
Discussion started by: ilpasta
5 Replies

7. Shell Programming and Scripting

Cron job giving error while running SSH command

Hi All, The script which i am using to SSH to remote server is working fine when i run is using ./ but when cron runs it it gives error that "ssh: not found" please help!!! (3 Replies)
Discussion started by: visingha
3 Replies

8. UNIX for Advanced & Expert Users

cron job is not running

hi, i have the following line in the crontab 15 5 * * 6 /home/adw/BCE_ADW.pl The problem is the cron job is not getting started automatically. But this was working til last week. now it is not working. what could be the problem. Any idea? (3 Replies)
Discussion started by: Suguna
3 Replies

9. HP-UX

Cron Job Not Running

Hi, I have a cron schedule like this 04,16,28,40,52 * * * * /nag/startProcessABatch (unix script) i want to add new lines in this file (like Logging), i just copy this file into a /tmp folder (for backup copy), and i have edited this file (added few lines of code for logging). ... (1 Reply)
Discussion started by: nag_sundaram
1 Replies

10. Shell Programming and Scripting

Hw to Know the status of running JoB

Hi all, I am running a job .. and i want to know the status tht it is runnig or not .. and how can i find the jobId of my job .. I have to get it to kill my running job Pls let me know da Unix commands to do it .. i m wrking on Hp UNIX (1 Reply)
Discussion started by: ravi.sadani19
1 Replies
Login or Register to Ask a Question