|
From: | Martin Vaner |
Subject: | Re: How to run bash script? |
Date: | Thu, 20 Mar 2014 23:17:43 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 |
Hi Martin, address@hidden:/usr/local/bin# ls -l /bin/bash -rwxr-xr-x 1 root root 975488 Dec 30 2012 /bin/bash address@hidden:/usr/local/bin# It is exit. So, when i run the script from the console, i just getting this output: address@hidden:/mnt/vouchers# bash -x logtest.sh ++ tail -n 10 contego.log ++ grep Error ++ wc -l + errorcount=0 + '[' 0 -gt 0 ']' + echo 0 0 + exit 0 address@hidden:/mnt/vouchers# If i run the script form the console directly, it is working fine. I do not understand, I have 18 servers all around the world and i am getting the same error from all of them. There is only one little difference between systems - something are Debian and something are OpenSuse .... Martin Dne 20.3.2014 23:03, Martin Pala
napsal(a):
ls -l /bin/bash |
[Prev in Thread] | Current Thread | [Next in Thread] |