Linked Questions

12 votes
1 answer
111k views

Open firefox from bash file "Error: no display specified" [duplicate]

I need to open a browser and access my server with the ip address 1.2.3.4. First I ping my server and if the ping did not fail I launch the home page in a browser. For this I have written a bash file ...
Pre's user avatar
  • 123
6 votes
1 answer
18k views

How to open an url in Firefox via cron (cron jobs scheduling) [duplicate]

Am trying to create a cron job to open a web page at a scheduled time. I have edited my cron using crontab -e and append my job. I wrote my job in a script like this: xdg-open (URL) I saved this ...
Mercy Flicker's user avatar
0 votes
2 answers
2k views

Help with crontab script [duplicate]

I'm sorry for creating this thread, but i cant solve this issue myself. I want crontab to execute basic command "xrandr --auto" I've created an test.sh file that looks like this. #!/bin/bash xrandr ...
P75's user avatar
  • 21
0 votes
2 answers
2k views

run php file from cron and start browser through exec on ubuntu [duplicate]

I am trying to start FireFox from php script using exec("firefox"). This works fine if i run php file from the terminal but does not work when run by the cron. User for cron & terminal is root. ...
vkj's user avatar
  • 101
1 vote
0 answers
507 views

Simple udev rule doesn't work on Ubuntu 16.04 [duplicate]

Can't get what's wrong with my udev rule and bash script. I want to make simple test on usb device insertion. This is my rule /etc/udev/rules.d/90-usb.rules: ACTION=="add", RUN+="/home/mike/...
mr.incredible's user avatar
1 vote
1 answer
466 views

how to use at command to schedule browser opening at a scheduled time [duplicate]

how to open Mozilla browser home page in 2 mins of current time using the at command on command line?
sabsac's user avatar
  • 11
1 vote
0 answers
116 views

Script doesn't work from udev [duplicate]

I have some trouble with running script from udev rule. It works normal if I will run it from terminal, but one command doesn't work when udev rule run this script. Udev rule: /etc/udev/rules.d/84-...
Manch's user avatar
  • 11
16 votes
1 answer
15k views

How do you run a GUI application without GUI (gui application as daemon on headless server)?

Okay, so I want to run a GUI application as daemon on a server without X. The application is a java program. It can be configured in a configuration file so the GUI is not necessary to use it. ...
con-f-use's user avatar
  • 18.8k
6 votes
5 answers
3k views

Adjust brightness with xrandr and cron job

EDIT Thanks to pa4080 I added one line to the script below and now it works great. I don't exactly understand how, oh well. I would like to make a cron job to adjust my brightness at different hours ...
Piney's user avatar
  • 163
5 votes
1 answer
4k views

Cron job to run python script at reboot does not work

I am new to linux and I read and followed many instructions to run a python script at reboot but non of them worked: this is the command I want to run: /usr/bin/python3 /home/am/projects/AMAcc/map....
Ashkan Mobayen Khiabani's user avatar
0 votes
1 answer
3k views

How to run a script in crontab? [duplicate]

I have a Script called "test.sh" in my Home Directory I want to be able to run it in crontab. I have added * * * * * /home/tom/test.sh to the crontab however it doesn't seem to be excecuting. I ...
tdubz's user avatar
  • 41
1 vote
0 answers
964 views

Cron not working but manually run in terminal works

I placed a command in a script file called app.sh that simply execute an application. sh app.sh When I run it with terminal directly works fine!! but when put it under cron does not work..I tired ...
Evan S's user avatar
  • 377
1 vote
1 answer
666 views

Variable in bash via cron?

#!/bin/bash ddd=$(date +%Y-%m -d "-1 month") xmessage -timeout 10 $ddd If I try this simple script I get this to work fine from terminal but when I start this script via cron the variable is always ...
Peter's user avatar
  • 11
1 vote
1 answer
487 views

Can't run Sikulix 1.1.0 on Ubuntu 15.10 with crontab

I try to run a Sikulix script but nothing happens. crontab: SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/home/absolute MAILTO="" # m h dom mon dow user command ...
Ppetrelli's user avatar
1 vote
1 answer
429 views

Cannot schedule GUI program

Have been trying to create a daily task to open GUI program (for the sake of argument say it is firefox) using crontab but I am not succeeding. At least I can't tell as no message is sent to terminal....
Juan Antonio's user avatar
  • 1,572

15 30 50 per page