Linked Questions
19 questions linked to/from How to start a GUI application from cron?
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 ...
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 ...
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 ...
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. ...
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/...
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?
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-...
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. ...
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 ...
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....
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 ...
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 ...
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 ...
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
...
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....