Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-24-2013, 02:30 PM   #16
Registered: Dec 2012
Posts: 78

Original Poster
Rep: Reputation: Disabled

Please find the strace results as attachments with the option vx . Filename output_cron ( it is with results of cron ) filename output_manaully ( it is with results of manually on shell ). it is a bash script not MSDOS.
Attached Files
File Type: txt output_cron.txt (8.6 KB, 15 views)
File Type: txt output_manually.txt (13.2 KB, 14 views)
Old 07-24-2013, 05:56 PM   #17
Senior Member
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,713

Rep: Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279
Can't tell. What is the script? What are the files you are trying to run?

To me, it just looks like you are not doing something right. But you haven't provided any evidence of what that might be.
Old 07-29-2013, 02:29 AM   #18
Registered: Dec 2012
Posts: 78

Original Poster
Rep: Reputation: Disabled
Below is the script that open browser in the backend, run java code and fetch some values. Again It works in the shell but not with cron. If i am point less at the moment.

/usr/bin/xvfb-run --auto-servernum --server-num=99 -s -ac /usr/java/jdk1.7.0/bin/java -jar /home/dikshit.rajkhowa/AutoScript/prod6.jar
Old 07-29-2013, 05:12 PM   #19
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Arch, Debian
Posts: 849

Rep: Reputation: 245Reputation: 245Reputation: 245
To tell the truth I did not get why you need to run an x application from cron, but if you really think you have to do that you may want to take a look at xpra. This allows you to provide an x environment to a process you are spawning without actually having to use a real x-server. You can also attach to the x-session later if needed.


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
getting error while running script under cron project.linux.proj Linux - Newbie 3 06-27-2013 04:23 PM
[SOLVED] Running scheduled script with cron snadjari Linux - Newbie 5 03-04-2011 03:39 PM
Problem in running a script in CRON senthilvael Linux - Newbie 11 11-21-2007 02:23 PM
cron NOT running php script ??!! hendrixx Linux - Software 2 11-15-2006 08:18 AM
running a 'dcop' script from 'cron' dsunger Linux - Software 0 05-10-2004 02:17 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:31 AM.

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