Tag Info

New answers tagged

2

When you read from a socket (or pipe or other asynchronous source), you can choose what happens if there's no data immediately available. Either you can have the read wait until some data arrives (blocking mode), or you can have it return immediately with an error (nonblocking mode). The error it returns in the second case is EAGAIN. So the EAGAIN error ...


0

try this setenforce 0 iptables -F then try to ping your public ip to see your public ip try ifconfig or go to Google and typ what is my ip then you see your ip and try to ping . and now you can remotely login using ssh, telnet., etc internet....... and sorry if i m worng......


3

From : http://stackoverflow.com/questions/14036116/convert-timestamp-to-datetime-with-sed with bit of scripting... ping -D localhost | while read row do awk '{ sub(/[0-9]{10}/, strftime("%Y-%m-%d %H:%M:%S", substr($0,2,10))) }1' <<< "$row" done Runs as $ ping -D localhost | while read row; do awk '{ sub(/[0-9]{10}/, strftime("%Y-%m-%d ...


1

If it's failing in cron where it works in shell, it's usually an environment issue, as Joel mentioned. In your cron, try logging the script output by appending >> /home/myuser/myscript.log to the end of your cron line, then read the file after your cron runs. You may find a lot of entries like -bash: ping: command not found, in which case you need to ...



Top 50 recent answers are included