linux - Bash Script Cron Job -
i have installed pcoip teradici pcoip solutions linux in centos 6.4. want macadress of hostcard, when run pcoip_agent -info
gives correct output using command line. want make cron job, purpose write bash script
#!/bin/bash hostcardmacaddress=$(pcoip_agent --info|grep -f 'pcoip host card mac:'|awk '{print $5}' > hostcardmacaddress.txt) cat hostcardmacaddress.txt
after make script cron job gives empty macaddress.
kindly me. thanks.
check mail of user owns cron
job. there error message indicating issue is.
login cron-job's user enter mail
, check mail @ time cron
job invoked.
Comments
Post a Comment