473,770 Members | 5,880 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

automation of snapshot using perl script

8 New Member
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..w hich 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....t his 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 5169
KevinADC
4,059 Recognized Expert Specialist
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
kraj123
8 New Member
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.......s o 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 Recognized Expert Moderator Specialist
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 Recognized Expert Specialist
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 Recognized Expert Moderator Specialist
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
kraj123
8 New Member
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...combin ing 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 Recognized Expert Moderator Specialist
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 Recognized Expert Specialist
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
kraj123
8 New Member
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......Thank s a lot for your co-operation....

Thanks and regards,
Raj
Aug 24 '07 #10

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

Similar topics

13
3576
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%) the on-call DBA will be paged. First some system information: get db cfg for ip0 First active log file = S0055850.LOG
4
3228
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 off attempting to do this with my poor knowledge of dos batch files? I'm running UDB 8.2 on Windows 2000. Thanks.
0
9316
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 Location: BTM Layout 1st Stage, Bangalore
0
2383
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 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++ Course on Automation, QTP Basics and Advanced, Quality Center and project ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
0
2197
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 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Course on Automation, QTP Basics and Advanced, Quality Center and project
0
2074
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 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Course on Automation, QTP Basics and Advanced, Quality Center and project
2
1920
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.. thanks in advance bunny
1
1733
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 that I am manipulating are part of a software program that was written in Java. However, my Perl script is layered on top of this program, so it does not affect the Java code (I hope that makes sense). In other words, my Perl automation is just...
1
1135
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 mouse and automating keyboard strokes, etc. What if i wanted to capture this automation and put it into an mpeg file. is this possible?
0
10232
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10059
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10008
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9873
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7420
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6682
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3974
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3578
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2822
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.