LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 05-15-2019, 06:31 AM   #1
sazdovskij
LQ Newbie
 
Registered: Mar 2008
Posts: 1

Rep: Reputation: 0
gdrive from crontab does'nt work , shell is ok from command line but failed from crontab


gdrive from crontab does'nt work , shell is ok from command line but failed from crontab
 
Old 05-15-2019, 07:08 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,598

Rep: Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691
Quote:
Originally Posted by sazdovskij View Post
gdrive from crontab does'nt work , shell is ok from command line but failed from crontab
There is nothing in your post to indicate that you intend to ask a question. Are you celebrating, just sharing, or complaining about the subject of your statement?


Assuming you are complaining, what have you tried to make your command WORK from your crontab file and what were the results?
What steps have you taken to diagnose the issue, and what did you find?
What research into issues of the same knind have you done, and what did you find?
 
Old 05-20-2019, 11:45 AM   #3
voleg
Member
 
Registered: Oct 2013
Distribution: RedHat CentOS Fedora SuSE
Posts: 354

Rep: Reputation: 51
Cron jobs runs in so called "sanitized" environment and with minimal PATH.
Usually, you have start your cron scripts sourcing your .bash_profile or .bashrc , what you use.
 
Old 05-20-2019, 12:25 PM   #4
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,726

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
...or use absolute paths to all commands and files...

But, yes, if you have a question, please ask it.
 
  


Reply



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
intermitent gdrive error ONLY when run as cron job remusb Linux - General 1 06-05-2018 01:32 PM
2gb RAM, Google Chome & GDrive total freeze jago25_98 Linux - Desktop 4 11-07-2016 08:44 PM
LXer: How to access your Google Drive account from Linux command line using Gdrive LXer Syndicated Linux News 0 09-02-2016 08:11 PM
GDrive for Linux. And Google's track record. dugan General 1 04-29-2012 11:45 AM
LXer: Google GDrive and Its Relation to Net Neutrality LXer Syndicated Linux News 0 07-27-2006 10:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:46 PM.

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