473,471 Members | 2,037 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Accessing Xml File Through Perl And Running It In Telnet

5 New Member
I have ten xml files (each xml file is executed in batch or telnet using the command (say) xyz.xml1, xyz.xml2 in batch !)

Now instead of executing each and every xml every time , i have to write a code in perl where it will access the ten xml files , run the xml one by one and produce the output in telnet or in batch !

please help me!
Feb 23 '08 #1
3 1844
numberwhun
3,509 Recognized Expert Moderator Specialist
I have ten xml files (each xml file is executed in batch or telnet using the command (say) xyz.xml1, xyz.xml2 in batch !)

Now instead of executing each and every xml every time , i have to write a code in perl where it will access the ten xml files , run the xml one by one and produce the output in telnet or in batch !

please help me!
Well, being this is a learning forum, we would like to see what code you have tried thus far. Please share it with us, enclosed in the proper code tags, and we will help you from there.

Regards,

Jeff
Feb 23 '08 #2
chinnu2809
5 New Member
Well, being this is a learning forum, we would like to see what code you have tried thus far. Please share it with us, enclosed in the proper code tags, and we will help you from there.

Regards,

Jeff


for eg: i have a n xml file (for folder creation)

xml code:

Expand|Select|Wrap|Line Numbers
  1. <CREATE-FOLDER>
  2. <PATH-ELEMENT>abc</PATH-ELEMENT>
  3. <FOLDER-NAME>def</FOLDER-NAME>
  4. </CREATE-FOLDER>
saving it as folder.xml

this xml is in c:\My Documents

now through perl i have to gte folder.xml and run it in (cmd prompt) c:\>My Document(path) \folder.xml

just help me how to link from perl to acees an xml and run it in command prompt or in batch
Feb 23 '08 #3
numberwhun
3,509 Recognized Expert Moderator Specialist
for eg: i have a n xml file (for folder creation)

xml code:

Expand|Select|Wrap|Line Numbers
  1. <CREATE-FOLDER>
  2. <PATH-ELEMENT>abc</PATH-ELEMENT>
  3. <FOLDER-NAME>def</FOLDER-NAME>
  4. </CREATE-FOLDER>
saving it as folder.xml

this xml is in c:\My Documents

now through perl i have to gte folder.xml and run it in (cmd prompt) c:\>My Document(path) \folder.xml

just help me how to link from perl to acees an xml and run it in command prompt or in batch
First, I did request that you use the code tags that eWish had to edit your post with. If you see the sticky in this forum, you would have found out how to use them.

Second, to execuse something on the system, just use the system() function.

Expand|Select|Wrap|Line Numbers
  1. system(/path/to/folder.xml);
  2.  
Regards,

Jeff
Feb 23 '08 #4

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

Similar topics

14
by: Michael Levin | last post by:
I've got the following problem. I'm a biologist and I have a device at work which monitors my frog habitat. The device has a bunch of sensors, and runs an embedded html server with some java...
0
by: CJ | last post by:
Can someone look at the code below and tell me whats going on? Here is the problem. I can successfully telnet one of our routers and successfully put in a command in the while statement, but...
1
by: Neel Word | last post by:
I need to develop an application (development platform: Win2000; target platform: Win98/ME/NT4/2000/XP), which would require file transfer functionality over dial-up and network. We could...
7
by: ajays | last post by:
I have a situation where i have to execute a Batch script on Remote Windows Machine (MACH2) from my local machine (MACH1). I was able to do this from windows machine to Linux machine but not able to...
3
by: susinthaa | last post by:
Hi , Is there any command in perl to copy a log file from solaris machine to windows machine after telnet to that machine? After copying how can we check that log for particular event? ...
5
by: pinpe | last post by:
Hi, I have problem of filtering a log file from my perl script. This is the file content of the file pinpe.csv: 2009-06-16 2009-01-29 2009-06-02 2008-03-05
2
by: johnyboy1230987 | last post by:
I am running my perl on linux trying to connect to window via telnet. How can I overcome the "Mode:" prompt? as you know when you telnet a window box you will be prompted with "Mode" I tried...
8
by: poolboi | last post by:
hi guys, i just did printing to a certain file #!perl\bin\perl use strict; use warnings; my $t; my @ok;
6
by: sherrygomindes | last post by:
Hi I have written a perl script using the Telnet module. I need to remotely login in from one windows XP machine to another XP machine. But i get errors which i can't figure out the reason....
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
1
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...
0
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...
1
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...
0
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.