472,992 Members | 3,500 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,992 software developers and data experts.

automation of snapshot using perl script

Hi Friends,

I would apprciate, if anyone could help me out regarding coding tips for writing a perl script for automating a snapshot process. Snapshot is nothing but capturingn forms from different language database local servers like russia,japan..which are in csv file taken as input and comparing with present english database forms in our system and output it as definition file. this out put should be checkin to repository....this should be automated by perl scripts...

so, i basically need hw to start or ref materials for automation process by perl script... if any one can help me out..that would be great...i can provide more info on interest...
Aug 23 '07 #1
10 5120
KevinADC
4,059 Expert 2GB
Generally you would use the operating system to automate a process, even if the process is a perl script. 'Cron' for unix/linux boxes and 'task' for windows boxes.
Aug 24 '07 #2
Hi Kevin,

first of thanks a lot for reply. I am using solaris box. I hv to write a perl script for automation of snapshot process and call this using shell script. I would appreciate if you can help me out sending some online links for automation - for perl scripts.......so as per my understanding. the automation is done by shell script in case of unix. and the logic is in perl script...is that correct....

THANKS...
Aug 24 '07 #3
numberwhun
3,509 Expert Mod 2GB
The automation is handled by the system ( ie: running your Perl script at specific time(s) ). If you create your script and run it on Unix, you can use the Unix scheduler (CRON) to have the task run at specific days/times (that is the automation piece. On Windows, you would use the Windows Scheduler to tell Windows when to run the script.

In Cron, you would supply the scheduler the command to run, so if your Perl script requires options fed to it, you can put them in there for it to use.

You don't necessarily need to use a shell script to kick off your Perl script as Cron can just take the Perl script and kick it off. Using a shell script just adds an extra layer that isn't truly necessary.

Regards,

Jeff
Aug 24 '07 #4
KevinADC
4,059 Expert 2GB
Hi Kevin,

.......so as per my understanding. the automation is done by shell script in case of unix. and the logic is in perl script...is that correct....

THANKS...
No, the automation is done by the operating system. See Jeffs post above. Running programs using the operatng system is not a perl issue, it is an operating system issues. Goolge for "cron tutorials" to find many online resources to help set up a cron job. But first write your perl programs.
Aug 24 '07 #5
numberwhun
3,509 Expert Mod 2GB
And keep in mind that when you are writing a script that is to be run by Cron that you MUST use absolute paths in the script as it is root running the script, not you.

Regards,

Jeff
Aug 24 '07 #6
The automation is handled by the system ( ie: running your Perl script at specific time(s) ). ...
Hi,

THANKS FOR THE REPLY.....

Ok, So if i have some requirement i perl for automation . It means I should just write the logic for a particular process....like for example snapshot process in my case...so then the script is taken care by schedular to run that file at particular time....am I correct.....So I would like to know any online perl materials is there to understand logic how to start writing a perl script for any automation process........or what i should know in perl to move further......

my actual requirement is...

I have to write a perl script for snapshot process..in unix box

1)capturing forms from database as csv file....
2)passing as input to server...combining front end +backend forms...
3)getting a .def file output..
4) making a pattern..then making script from pattern...
5)taking snapshot....
6)now checking this output with current system...
7)checkin the diff to repository....

so, any automation knowlede in perl i should learn.....

If, You are interested I can send a file to you. So you know where I am struggling.....

Thanks a lot for helping me ......
Aug 24 '07 #7
numberwhun
3,509 Expert Mod 2GB
First, please bottom post. Do not top post. (ie: put your response after the quote of the post you are replying to.

Correct, the Perl script will do what you want to do. In this case, take a snapshot. The operating system scheduler will handle running the Perl script at designated time (the automation).

It sounds like you need to learn Perl in order to code your script. You may want to start with the tutorial over at tizag.com. I would also consider, if I were you, picking up "Learning Perl, 4th Edition" from O'Reilly Books.

From your list of tasks, you have A LOT going on and also a lot to figure out. We can help you understand what you don't, but please don't forget to post your code here (in code tags) so we can troubleshoot.

Regards,

Jeff
Aug 24 '07 #8
KevinADC
4,059 Expert 2GB
When we start repeating ourselves I get uninterested in continuing. If you have no working perl code then that is where you need to start. Forget the automation for now. Write some perl code that at least does your first requirement:

1)capturing forms from database as csv file....

Then build on it from there. Until you have some perl code to post I can't offer any more help.
Aug 24 '07 #9
From your list of tasks, you have A LOT going on and also a lot to figure out. We can help you understand what you don't, but please don't forget to post your code here (in code tags) so we can troubleshoot.
Jef,

Alright...I will work on it. Then I will let you know , So that you can check wheather I am in right path......Thanks a lot for your co-operation....

Thanks and regards,
Raj
Aug 24 '07 #10
When we start repeating ourselves I get uninterested in continuing. If you have no working perl code then that is where you need to start. Forget the automation for now. Write some perl code that at least does your first requirement:

1)capturing forms from database as csv file....

Then build on it from there. Until you have some perl code to post I can't offer any more help.
Kevin,

Yes kevin You are right. I was in testing before, I am new to development.
So, even before starting I want to make sure , what I know , and where I have to work....Thank you so much for your co-operation....let me work on some code....then I will let you if I got stuck..
...
Thanks & Regards,,
Raj
Aug 24 '07 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

13
by: Lew | last post by:
Hi, I am a bit confused about what I'm seeing on my systems. I am trying to develop a script that will determine what percentage of the total log space is being used. If it is too high (80%)...
4
by: Civilian_Target | last post by:
Is there any way in DB2 to automate the taking of a snapshot, for example, a function that will cause a db2 snapshot to be taken every 5 minutes and written to a uniquely named file? Am I better...
0
by: Sharath | last post by:
Quality Globe is Glad to Offer you the Fast Track course on Automation, QTP Basics and Advanced, and Quality Center Starting Date: June 4th, 2007 Timings: 10 AM to 3:30 PM Duration: 50 Hours ...
0
by: Sharath | last post by:
"Inspired" by the huge success of our first two automation fast track batches We are forced to start third fast track automation batch ...
0
by: Sharath | last post by:
We are glad to inform you that "Inspired" by the huge success of our first three automation fast track batches We are forced to start fourth fast track automation batch ...
0
by: Sharath | last post by:
We are glad to inform you that "Inspired" by the huge success of our first four automation fast track batches We are forced to start fifth fast track automation batch ...
2
by: bunny02 | last post by:
Hi friends, I m new to perl, now i have to write a perl script which will be used as automation tool for test a web based application. Can any one give some suggestions, how to start and do.. ...
1
by: Perl Beginner | last post by:
Hi All, I have a very extensive Perl script using Win32. This is an automation script which manipulates various windows using the mouse and keyboard (using Win32::GuiTest). The various windows...
1
by: Perl Beginner | last post by:
I have written an automation using Perl (Win32). in a nutshell, it's layered on top of another software and the perl script manipulates the other software's windows and menus by moving around the...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.