![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Windows & DOS: Issues & Discussions All Windows and DOS questions should go here as well. Discuss UNIX to Windows (Desktop or Server) here! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need Help on "waitfor" command in net::Telnet Module | sudhakaryadav | Shell Programming and Scripting | 1 | 01-23-2009 10:36 AM |
| Problem scheduling perl script with "at" command | squallsquall | Shell Programming and Scripting | 6 | 01-09-2009 04:39 AM |
| The "PS" command was displaying*terminals named as "SYSCON" | kiranjose85 | UNIX for Advanced & Expert Users | 1 | 11-28-2008 07:53 AM |
| Unix "at" / "Cron" Command New Problem...Need help | Mohanraj | UNIX for Dummies Questions & Answers | 3 | 01-26-2006 08:08 PM |
| Help! "Put" command from telnet session | tigote | UNIX for Dummies Questions & Answers | 5 | 12-27-2001 04:39 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Need Help on "waitfor" command in net::Telnet Module in PERL
Hi,
Can anybody help me in writing command "waitfor" for string "C:\WINNT\Profiles\mfcf0508>" while using net::Telnet module. I tried the below format : $telnet->waitfor('/"C\:\WINNT\Profiles\mfcf0508>".*$/i'); Getting error as : pattern match timed-out Plz help me |
|
||||
|
Quote:
|
|
||||
|
Tried by putting double back slashes and removing double quotes .
Still iam getting "pattern match timed-out at ./bsc.pl line 20" error. $telnet->waitfor('/C:\\WINNT\\Profiles\\mfcf0508\\>.*$/i'); original string : C:\WINNT\Profiles\mfcf0508> |
|
||||
|
Quote:
What I often do when debugging regexes is simplify them greatly, then add more to the end until they stop working. See if you can get it to match "c:\\", then add more until you find the point it breaks at. $telnet->dump_log(); may also be useful should the remote server turn out to not be sending precisely what you think it is. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|