LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-10-2016, 10:42 AM   #1
slufoot80
Member
 
Registered: Nov 2011
Posts: 69

Rep: Reputation: Disabled
Exclamation crontab cshell and perl scrip problem


I am running Solaris 9

I have a script that is written in perl

The user account is in the cshell

When I run the script manually it runs fine, but when I run in the crontab it fails, because it is missing a variable I think, how would I fix this?
 
Old 02-10-2016, 10:58 AM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
According to man 5 crontab you can set environment variables in your crontab. Double check that in your Solaris manuals. See paragraph three http://www.freebsd.org/cgi/man.cgi?crontab(5)

Last edited by sag47; 02-10-2016 at 11:02 AM.
 
Old 02-10-2016, 11:03 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by slufoot80 View Post
I am running Solaris 9

I have a script that is written in perl The user account is in the cshell When I run the script manually it runs fine, but when I run in the crontab it fails, because it is missing a variable I think, how would I fix this?
Since you've been here for five years now, you should be well aware that you need to actually provide DETAILS when asking a question. Since you don't show us your script, we have NO IDEA what it's supposed to do, what it's looking for, or how to even GUESS as to how to fix it.

Short answer: you fix your Perl script.
Longer answer: Post your script, and we can try to help you.
 
1 members found this post helpful.
  


Reply

Tags
cron, crontab, cshell



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Problem with crontab:: command not executed properly via crontab Ankush Seth Linux - Newbie 11 11-11-2013 06:25 AM
crontab and perl script nor running sometimes. polinux Linux - General 6 09-23-2013 05:43 AM
problem running small cshell script? kaaliakahn Linux - Newbie 4 02-13-2012 12:05 AM
Perl Jobs are not running from crontab revanthec Linux - Newbie 1 11-30-2010 05:06 AM
Perl, Sendmail & Crontab msw1970 Programming 6 09-25-2010 01:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:38 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
Open Source Consulting | Domain Registration