linux - Why my shell script doesn't open the terminal, though it gives output log absolutely fine? -


my script contents are:

#!/bin/bash path=/opt/someapp/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin ant -buildfile /home/kris/desktop/myproject/build.xml run    

if open terminal , type: bash myscript.sh, runs fine. when set cron job, doesn't open terminal. generates output log fine. want after setting cron, myscript.sh run automatically @ specific time. open terminal , run command ant -buildfile /home/kris/desktop/myproject/build.xml run

contents of cron file are:

* 9 5 * * /home/kris/desktop/myproject/myscript.sh  > /home/kris/desktop/output/output.sh 

build.xml runs testng.xml , testng.xml runs scripts written in java. working on ubuntu machine.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -