LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-25-2015, 01:38 PM   #1
sriducati
LQ Newbie
 
Registered: Dec 2015
Posts: 1

Rep: Reputation: Disabled
Ubuntu crontab issue


I have to run `crontab` in `xvfb display mode` forever when the system restarts...below is crontab code....

@reboot nohup Xvfb :1 -screen 0 1024x768x24 & export DISPLAY=":1"
@reboot /usr/bin/forever start -c /usr/bin/node test/app.js

After the system reboots... I have to run both the commands sequentially..second command works fine...but i think Xvfb is not starting...if possible i want to run xvfb also in forever mode if it stops unexpectedly,how to fix this?

i have also tried running script...

#!/bin/sh
/usr/bin/nohup Xvfb :1 -screen 0 1024x768x24 &
export DISPLAY=":1";
/usr/bin/forever start -c /usr/bin/node test/app.js;


@reboot start_me.sh
 
Old 12-25-2015, 05:07 PM   #2
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,959

Rep: Reputation: Disabled
Xvfb is probably not found without full path.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] crontab issue stockton Linux - General 6 01-16-2015 04:14 AM
Crontab issue preetham.66666 Linux - Server 4 01-11-2015 10:36 PM
crontab issue,need help aditya_moon Linux - Newbie 2 02-07-2011 10:54 PM
crontab issue adnanm Linux - Newbie 1 03-16-2007 02:28 AM
crontab issue lappen Linux - Newbie 6 05-24-2004 05:47 PM


All times are GMT -5. The time now is 05:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration