This discussion is archived
0 Replies Latest reply: May 28, 2013 2:04 PM by thgoum RSS

External Bash Script Passwordless Login ssh doesn't return status

thgoum Newbie
Currently Being Moderated
Hi to all,

I have created an event based job which is calling a bash script like this

------------------------------------------------------------------------
#!/bin/bash
ssh test_user@test_server rm -fv /home/test_user/*
------------------------------------------------------------------------

but every time the event is raised and the job is triggered, stucks in running mode. It seems that the ssh doesn't return exit code.

Any ideas?

Thanks in advance

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points