Sorry I must have deleted the subject line before submitting post. If someone can, please delete this entry as i have added it again.
Or if I can, please let me know how, but cant see that
Thanks
Sam
samdaman (TechnicalUser) May 16, 2003
Hi. I am a newbie (as you will all see in a moment).
I have a text file example
Dialer129
Dialer195
Dialer303
Dialer145
Dialer201
Dialer145;;0239028;;10;;10;;8
And I need to do the following
If a dialer number appears twice, delete the one that does...
Hi. I am a newbie (as you will all see in a moment).
I have a text file example
Dialer129
Dialer195
Dialer303
Dialer145
Dialer201
Dialer145;;0239028;;10;;10;;8
And I need to do the following
If a dialer number appears twice, delete the one that does not have any extra information, so as in...
The compiler I am using is from Indigostar.
I have also made a batchfile to run the exe from a cmd prompt with the pause line which works, but if possible can it be done without the batch file?
Thanks and kind regards
Sam
Hi there
I have hopefully a small problem. I have successfully compiled my perl script to an exe file. The only problem is, my output to screen disappears after 2 seconds, and I need it to stay open until the user "pushes any key". I have tried adding lines in my script to keep the...
Hi Barbie
So I have incorporated this into my script now (at the bottom)
A summary is that this script takes an output from a cisco router and saves it to a file called cismultilink.txt.
Then the script you helped me create takes the output from this file and then does the substition. My...
Your a star it works really well. I guessed the answer was something like this, and had tried lots of matching operations. When nothing seemed to work, I added the @lines.
Thanks very much
Kind regards
Sam
Here is what I have tried so far, but either I get the same result as before, or it does not match anything.
Kind regards
Sam
open (SOUT, "<cismultilink.txt") or die "cant open cismultilink.txt: $!";
open (NOUT, "+>named_output.txt") or die "cant open...
Hi Barbie
Thanks for your reply, it has definately pointed me in the right place. I have managed to get it almost working perfectly. The last thing is that when the script finds a match, it starts to replace it with something from the location script. For example in my location file I have...
Hi there.
So this is my 2nd week perl scripting, and im starting to get the ropes now.
I have two text files, one is created by another perl script that is an output from a cisco router, the other is a text file that lists "Dialer101 to Amsterdam" for example. I am trying to get...
Hi everyone.
I am trying to retrieve some information from a text file, but am not sure if the format is ok. Could someone please tell me how its supposed to be? Currently its like this
Host:
172.24.100.111
Dialer:
1
Eventually this data file will have multiple hosts, with dialers linked...
Its a text file. I guess im not to sure about how I should write that too. At the moment its
Router 172.24.100.111
dialer 1;2;3...
Should I use a spreadsheet instead? or format it differently.
Thanks for you help
Sam
Hi anyone out there.
I am a Cisco administrator that has been chucked headfirst into the world of scripting. So starting yesterday, I have made my first script that works. yahooo. Its below if needed
I need this script to open interface dialers on a cisco router. The script below can open a...
I am having problems connecting to two routers in the US over ISDN.
I have a PRI (Germany) to BRI configuration to many routers worldwide that is identical in configuration. (This includes others that work in the US)
The Router in Beaver Creek US has 5 BRI chanels one with a WIC interface...
Help someone
I have been asked to configure a 3620 router to separate apple macs on our network in order to increase apple network performance. These macs are configured to run on a TCP/IP environment and need to stay this way. My question is how do I do this?
Can I just configure the router...
Hi Gabriel
Thanks for the solution. Funily enough I did some of what you suggested.
I made ae (ur short port versions)the default gateway on router a, and ae on router b the default gateway, and bingo i could ping from one pc to the other and vice versa. I suppose that because I made the ip...
Dont worry, your text isnt as long as its taking me to do it on my own ;-) and is very helpful. In fact your first reply helped me with other problems, which I have now solved.
Basically, I have been given two routers and the course material (which I have laboriously covered) from the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.