LinuxQuestions.org
Help answer threads with 0 replies.
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 02-07-2011, 02:12 PM   #1
yogesh narale
LQ Newbie
 
Registered: Feb 2011
Location: india
Distribution: rhel 4, 5 and 6
Posts: 7

Rep: Reputation: 0
not able to find one script


I got a mail today from my client as follows. What are the steps I should take to solve this problem?? please reply as soon as possible. Its urgent.

-------------------------------------------------------------------------


Each day one script running in CMS_UAT(Hostname os server) copies and renames branch file from CMS

This script does two following function

1) Copies the file named CMS_CRM_yyyymmddhhminsec_1 (exampleCMS_CRM_20110206194510_1)
from the K:\ReverseMigration\prod-dd-mm-yyyy-xls ( example K:\ReverseMigration\prod-06-02-2011-xls) to the folder Named backup/cms_crm)
2) It renames the file to CMS_CRM.CSV

This script is not running from the day CMS_UAT crashed and restored again.
Please start running the script at around 8pm every night

-----------------------------------------------------------------------
I am not able to find the script.
 
Old 02-07-2011, 02:15 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Look in the cron* directories.

Kind regards
 
Old 02-07-2011, 02:17 PM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,272

Rep: Reputation: 4440Reputation: 4440Reputation: 4440Reputation: 4440Reputation: 4440Reputation: 4440Reputation: 4440Reputation: 4440Reputation: 4440Reputation: 4440Reputation: 4440
Quote:
Originally Posted by yogesh narale View Post
I got a mail today from my client as follows. What are the steps I should take to solve this problem?? please reply as soon as possible. Its urgent.
-------------------------------------------------------------------------
Each day one script running in CMS_UAT(Hostname os server) copies and renames branch file from CMS

This script does two following function
1) Copies the file named CMS_CRM_yyyymmddhhminsec_1 (exampleCMS_CRM_20110206194510_1)
from the K:\ReverseMigration\prod-dd-mm-yyyy-xls ( example K:\ReverseMigration\prod-06-02-2011-xls) to the folder Named backup/cms_crm)
2) It renames the file to CMS_CRM.CSV

This script is not running from the day CMS_UAT crashed and restored again.
Please start running the script at around 8pm every night
-----------------------------------------------------------------------
I am not able to find the script.
First, this is NOT URGENT FOR ANYONE HERE. We volunteer our time, and answer when we want to, if we want to.

Second, you need to provide details when asking a question...things like version/distro of Linux, error(s) you're getting, what you're doing to get them, etc.

The script references a "K" drive...which is a WINDOWS drive letter. Linux doesn't use such things...have you tried to look on the Windows server for the batch file? Does this script touch a Linux server in any way? Any details about the script?? If it's a Windows script, you should try a Microsoft forum...this is LinuxQuestions....
 
Old 02-07-2011, 02:50 PM   #4
yogesh narale
LQ Newbie
 
Registered: Feb 2011
Location: india
Distribution: rhel 4, 5 and 6
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by repo View Post
Look in the cron* directories.

Kind regards
I saw cron*. but no script is present
 
Old 02-07-2011, 05:48 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,272

Rep: Reputation: 4440Reputation: 4440Reputation: 4440Reputation: 4440Reputation: 4440Reputation: 4440Reputation: 4440Reputation: 4440Reputation: 4440Reputation: 4440Reputation: 4440
Quote:
Originally Posted by yogesh narale View Post
I saw cron*. but no script is present
Ok...now how about answering the REST of the questions we asked?

- Is this a Linux script or Windows script?
- Which box does it run on?
- Is it a script or batch file?
- You say you "saw cron"...WHICH cron? The /etc/cron.*, or the ones in /var?

At least acknowledge the posts people make for you, and answer the questions that are asked.
 
Old 02-07-2011, 07:17 PM   #6
AnanthaP
Member
 
Registered: Jul 2004
Location: Chennai, India
Distribution: UBUNTU 5.10 since Jul-18,2006 on Intel 820 DC
Posts: 849

Rep: Reputation: 201Reputation: 201Reputation: 201
The script could reside anywhere on the file system. So you should look in the earlier (prior to CMS_UAT crash and restore) copy of the scheduler files (cron in the case of linux) to see where the script file resides.

Otherwise, rewrite the script and stick it in. Seems simple enough.

End
 
Old 02-07-2011, 10:31 PM   #7
yogesh narale
LQ Newbie
 
Registered: Feb 2011
Location: india
Distribution: rhel 4, 5 and 6
Posts: 7

Original Poster
Rep: Reputation: 0
thanx....its better to write again

Quote:
Originally Posted by AnanthaP View Post
The script could reside anywhere on the file system. So you should look in the earlier (prior to CMS_UAT crash and restore) copy of the scheduler files (cron in the case of linux) to see where the script file resides.

Otherwise, rewrite the script and stick it in. Seems simple enough.

End
thanx....its better to write again
 
  


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] find script shellarchive Programming 9 08-18-2010 06:50 AM
Shell script: not able to find jags.singh Programming 8 06-15-2007 11:12 AM
find script kaiserbeto Linux - Newbie 4 12-02-2006 03:49 AM
find shell script help liren Linux - Newbie 3 05-02-2005 04:05 PM
how to find the pid of a perl script from shell script toovato Linux - General 1 12-19-2003 07:25 PM

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

All times are GMT -5. The time now is 02:51 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration