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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -