LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-12-2016, 10:07 AM   #1
mojhsin13
LQ Newbie
 
Registered: May 2016
Posts: 4

Rep: Reputation: Disabled
Post Migrating cron jobs


Hi friends
I am new to this forum ,first of all I want to introduce myself
That I am Mohsin SE working with HPE banalore.
My question is is there any possible way to copy or migrate all the cron jobs from one old server to another old server.
If it is
Then how ?
 
Old 05-12-2016, 11:06 AM   #2
HMW
Member
 
Registered: Aug 2013
Location: Sweden
Distribution: Debian, Arch, Red Hat, CentOS
Posts: 763
Blog Entries: 3

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
Hi and welcome!

Take a look here:
https://lmddgtfy.net/?q=copy%20cron%...20to%20another

^The first result.

Best regards,
HMW
 
Old 05-12-2016, 11:35 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,978

Rep: Reputation: 4311Reputation: 4311Reputation: 4311Reputation: 4311Reputation: 4311Reputation: 4311Reputation: 4311Reputation: 4311Reputation: 4311Reputation: 4311Reputation: 4311
Quote:
Originally Posted by mojhsin13 View Post
Hi friends
I am new to this forum ,first of all I want to introduce myself
That I am Mohsin SE working with HPE banalore.
My question is is there any possible way to copy or migrate all the cron jobs from one old server to another old server.
If it is
Then how ?
This is NOT URGENT for ANYONE here...we volunteer our time, so expecting/asking for 'urgent' help is fairly rude. Secondly, if this is 'urgent', then why didn't you bother to try to look this up???

And if you already know there are cron jobs, you obviously already know how to list them...did you think about just redirecting that to a file, and copying it to the crontab on the new server, and restarting cron??? At least TRY to show some effort of your own.

And this is the SECOND thread you've opened with a title of 'urgent'. And if you're really an SE with a company, how did you get the job, if you don't know any commands, any basics, or even how to look things up??? Don't expect us to tell you each and every step on how to do/keep your job...if you're not qualified for it, it won't be long before you LOSE the job.

Last edited by TB0ne; 05-12-2016 at 11:36 AM.
 
1 members found this post helpful.
Old 05-12-2016, 11:54 AM   #4
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: Debian, Crux, LFS, AntiX, NuTyX
Posts: 1,194

Rep: Reputation: 545Reputation: 545Reputation: 545Reputation: 545Reputation: 545Reputation: 545
My guess is that he's actually a student. If you look at his other post, it definitely looks like a homework question. But it did at least give me an agreeable 15 minutes working out how I'd do it.
 
Old 05-12-2016, 12:48 PM   #5
HMW
Member
 
Registered: Aug 2013
Location: Sweden
Distribution: Debian, Arch, Red Hat, CentOS
Posts: 763
Blog Entries: 3

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
Quote:
Originally Posted by TB0ne View Post
And if you already know there are cron jobs, you obviously already know how to list them...did you think about just redirecting that to a file, and copying it to the crontab on the new server, and restarting cron??? At least TRY to show some effort of your own.
Which, by the way, is one of the solutions in the link I posted. DuckDuckGo is your friend.

Quote:
Originally Posted by TB0ne
And if you're really an SE with a company, how did you get the job, if you don't know any commands, any basics, or even how to look things up??? Don't expect us to tell you each and every step on how to do/keep your job...if you're not qualified for it, it won't be long before you LOSE the job.
This I didn't even reflect upon, but TB0ne has a point.
 
2 members found this post helpful.
Old 05-12-2016, 01:13 PM   #6
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,725

Rep: Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916
If I were convinced this was a post from an HPE employee I would be reporting it to HPE for bringing the company into disrepute.
I think this may be libel and could be worth deleting -- seriously, HPE don't want this turning up as representing them, I'm sure?

Last edited by 273; 05-12-2016 at 01:14 PM. Reason: Edits due to smartphone siliness.
 
1 members found this post helpful.
Old 05-12-2016, 01:14 PM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,978

Rep: Reputation: 4311Reputation: 4311Reputation: 4311Reputation: 4311Reputation: 4311Reputation: 4311Reputation: 4311Reputation: 4311Reputation: 4311Reputation: 4311Reputation: 4311
Quote:
Originally Posted by 273 View Post
If I were convinced this was a post from an HPE employee I would be reporting it to HOUR. For bringing the comnpany into disrepute.
I think this may be libel and could be worth deleting. -- seriously, HPE don't want this turning up as representing them, I'm sure?
Sorry, but it probably is. I've seen posts from IBM employees asking about how to install programs via SMITTY....seriously....and they posted their IBM email addresses so we could 'ping them'.
 
1 members found this post helpful.
Old 05-12-2016, 01:18 PM   #8
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,725

Rep: Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916
Quote:
Originally Posted by TB0ne View Post
Sorry, but it probably is. I've seen posts from IBM employees asking about how to install programs via SMITTY....seriously....and they posted their IBM email addresses so we could 'ping them'.
I know from experience that this could be honest but I'm still not sure it's a good idea to let it lie for potential lible issues?

Last edited by 273; 05-12-2016 at 01:33 PM.
 
Old 05-12-2016, 03:39 PM   #9
paelgin
LQ Newbie
 
Registered: Jul 2008
Location: North central Georgia
Distribution: Fedora 9
Posts: 2

Rep: Reputation: 9
I just looked to see who was naive enough to post with a meaningless subject!

Phil in gorgeous Young Harris Georgia, USA
 
Old 05-13-2016, 02:42 AM   #10
mojhsin13
LQ Newbie
 
Registered: May 2016
Posts: 4

Original Poster
Rep: Reputation: Disabled
Hi everybody
Thanks for teaching me a good lesson.
and I am able to understand what to questioned and what to expect the answer from you guys.
first of i had never used such types of forum before.and somebody is trying to say me that he going to complain about me with my company. thanks for your good good answers.
I really appreciate you guys are very busy and you don't have the time to solve the problem because you guys have time to scokld me. and by the way I got the solution by myself...
thanks you indigenious guys.
 
Old 05-13-2016, 02:43 AM   #11
mojhsin13
LQ Newbie
 
Registered: May 2016
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thumbs down

Quote:
Originally Posted by paelgin View Post
I just looked to see who was naive enough to post with a meaningless subject!

Phil in gorgeous Young Harris Georgia, USA
Don't wait buddy these guys knows nothing
 
Old 05-13-2016, 05:01 AM   #12
HMW
Member
 
Registered: Aug 2013
Location: Sweden
Distribution: Debian, Arch, Red Hat, CentOS
Posts: 763
Blog Entries: 3

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
Quote:
Originally Posted by mojhsin13 View Post
I really appreciate you guys are very busy and you don't have the time to solve the problem because you guys have time to scokld me.
I for one, did not scold you - but pointed you towards an answer. As for time, if I don't HAVE time, I MAKE time to solve problems. Why? Because I am a hacker.

I get it though, you think some of the responses to your question were a bit harsh. You may have a point, but so do the people who have replied in this thread.

Please read this and this, and do come back here if you get stuck some time in the future. We're really a helpful bunch of people.
 
1 members found this post helpful.
Old 05-13-2016, 08:09 AM   #13
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,978

Rep: Reputation: 4311Reputation: 4311Reputation: 4311Reputation: 4311Reputation: 4311Reputation: 4311Reputation: 4311Reputation: 4311Reputation: 4311Reputation: 4311Reputation: 4311
Quote:
Originally Posted by mojhsin13 View Post
Hi everybody
Thanks for teaching me a good lesson. and I am able to understand what to questioned and what to expect the answer from you guys.first of i had never used such types of forum before.and somebody is trying to say me that he going to complain about me with my company. thanks for your good good answers.
..and if you bothered to read the LQ Rules (which you SHOULD HAVE when you signed up to post), the question guidelines, or just showed SOME effort of your own, you'd have gotten better answers.

Which, by the way, you DID get, didn't you??
Quote:
I really appreciate you guys are very busy and you don't have the time to solve the problem because you guys have time to scokld me. and by the way I got the solution by myself...thanks you indigenious guys.
And since you came here looking for help, why don't you bother telling us all what you did? Since, after YOU SAY:
Quote:
Originally Posted by mojhsin13
Don't wait buddy these guys knows nothing
...we know NOTHING (except for the fact the FIRST TWO REPLIES you got gave you answers...to a question YOU DIDN'T KNOW), we could CERTAINLY benefit from your knowledge, right???

HWW is exactly correct....bear in mind we DO NOT work for you/with you, so asking us to basically look things up for you, and send you an answer, is VERY rude on your part. You behave that way, you'll get answered that way. This is a place to come for HELP...that is something like:

"Hey everyone. I'm trying to do xxx, and have tried (yyy, zzz, ...), and have failed. I got these error(s)/message(s). Does anyone have any ideas?"

..shows that YOU did and tried something. You showed EFFORT. Something like:

"I'm trying to do xxx...tell me how, and ping me on my email address"

...indicates you've done/tried NOTHING, and are expecting others to look things up for you. Which will get you exactly nowhere.

Last edited by TB0ne; 05-14-2016 at 10:14 AM.
 
1 members found this post helpful.
Old 05-13-2016, 09:47 AM   #14
HMW
Member
 
Registered: Aug 2013
Location: Sweden
Distribution: Debian, Arch, Red Hat, CentOS
Posts: 763
Blog Entries: 3

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
Quote:
Originally Posted by TB0ne View Post
This is a place to come for HELP...that is something like:

"Hey everyone. I'm trying to do xxx, and have tried (yyy, zzz, ...), and have failed. I got these error(s)/message(s). Does anyone have any ideas?"

..shows that YOU did and tried something. You showed EFFORT.
^This++

Also, I can't shake the image of TB0ne actually SCREAMING at his monitor, which I find absolutely hilarious (with absolutely no disrespect, I agree 100% with your statement).

Best regards,
HMW
 
1 members found this post helpful.
Old 05-13-2016, 01:10 PM   #15
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,725

Rep: Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916
My reply was based upon the original post being either "help me! I lied my way into this job and need help" or "help me! My employer knows I have no clue and expects me to do something anyhow"
I have to admit here I work for a competing company but, really, I wanted this thread deleted as it just seems wrong.
If this is some kind of training course or test being undertaken then please state that also.
My response was due to frustration that somebody employed to do a task has to ask how to do so on the internet and does not know how to ask.
I only mention a similar employer to say "I know where you're coming from" and to suggest that the naming of an employer on the internet where everything is forever is not a good idea.
 
  


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
Cron job starts 6 hours late, rest of cron jobs work fine pieterhouwen Linux - Newbie 33 10-05-2015 12:38 PM
Where are cron jobs located when not under /var/spool/cron/root? NotionCommotion Linux - Newbie 6 09-07-2012 07:33 AM
cron hourly, daily, cron.d jobs don't execute eggsmartha Linux - General 3 09-17-2007 06:37 PM
cron jobs working2hard Linux - Software 0 07-28-2004 05:31 PM
CRON Jobs scottpioso Linux - Software 63 11-28-2003 06:45 PM

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

All times are GMT -5. The time now is 02:04 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