my cron tab command is
Code:
*/1 * * * * /home/usrname/Desktop/BEproject/call1.sh > /home/usrname/ab.txt
and the file call1.sh is as below.....
Code:
#!/bin/sh
/bin/echo "hi"
/bin/echo "HI"
gcc -o output /home/usrname/Desktop/BEproject/apacheCheck.c
gcc -o output1 /home/usrname/Desktop/BEproject/nginxCheck.c
./output
./output1
The problem is that the file ab.txt gets generated every minute which has the output
as expected..
however the c codes i have called in call1.sh don't seem to run.
They don't seem to run because the output of those codes is a text file which doesn't get generated.
What is happening?
Need help please ....