I am trying to schedule a task in /etc/ directory (requires root permission to execute it as a normal user) that open firefox every 2 minutes, in a range of hours using "crontab" and append the occurrence to a file, but for some reason I can't get the firefox to open even though I did it in home/user/file/... but not in /etc/....
the time is recording correctly every two minutes but firefox is not opening up!! I gave the file Lab4 the permission (chmod +x) and my_lab (chmod 777) and that's how I got the file Lab4 to start recording the time.
here is the task :
*/2 4-6 * * * export DISPLAY=:0 && firefox --new-window http://www.google.com | date >> /etc/my_lab/Lab4