Mac "expect" function cannot work properly with ftp "!" command

Lastly I have written a Expect-TCL script on Linux to automatically download log files from my company network device I have ever made used of ftp command “!” to go back to linux local to create directory with appropriate name for storing downloaded files.
However, I found that when I use the same Expect-TCL script on my Mac, I found that the Expect script will stuck at ftp “!” command without proceeding onward. Here below is the command output with my sample experiment.
BMBP:_Practise boyce$ expect sample-ftp.exp
spawn ftp 127.0.0.1 21
Connected to 127.0.0.1.
220-Welcome to Boyce BMP FTP
220 CrushFTP Server Ready!
Name (127.0.0.1:boyce): boyce
331 Username OK. Need password.
Password:
230 Password OK. Connected.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> binary
200 Command ok : Binary type selected.
ftp> verbose
Verbose mode off.
ftp> !
bash-3.2$
quit
exit
^CBMBP:_Practise boyce$
Here below is my sample script to test ftp “!” command:
BMBP:_Practise boyce$ cat sample-ftp.exp
#! /usr/bin/expect
Default Settings
set site "127.0.0.1"
set port "21"
set dirListFile "dir_list.txt"
set sdUserName "boyce"
set sdUserPwd "boyce"
Launch a FTP session to SD
set timeout 60
log_user 0
spawn ftp $site $port
expect "Name" {send "$sdUserName\r"}
expect "Password:" {send "$sdUserPwd\r"}
expect "ftp>" {send "binary\r"}
expect "ftp>" {send "verbose\r"}
expect "ftp>" {send "!\r"}
expect "(.*)" {send "ls\r"}
exit
Have you ever tried “!” command from expect script? Should it be classified as a bug on Mac Expect and do you know is there any patch available to fix such problem?

Try posting this in the Unix Forums.

Similar Messages

  • Ago function not working properly with time dimension

    Hi all,
    In OBIEE 11g we have the following issue:
    We have a fact which contains transaction's sum for the last day of each month.
    We use ago function like this : ago(<fact.column>,1)When we want to see the result from the time hierarchy the fact with the ago function works properly for quarters and half years but for the months shorter than the previous one can't take the right value /equals to NULL/.
    For example :
    sum for YEAR: 10000
    sum for Half Year 1 : 4000
    sum for Half Year 2 : 6000
    sum for Quarter 1: 1000
    sum for Quarter 2: 3000
    sum for Quarter 3: 2000
    sum for Quarter 4: 4000
    sum for month... - here the ago function is confused with the last day of previous month if it's shorter than itself: For example - for march it cannot take value for end of February ..etc.
    Any ideas?
    Thanks in advance,
    Alexander.

    Hi,
    I faced some issues previously with month, so I used month+year as id instead of month id. Instead of tragging month id 1-12 into your hierarchy, create another column into your table like month+year - 201201, 201202 which creates unique month_year_id and drag this column into month level instead of month_id. So the problem might be solved.
    Regards,
    Anitha.B

  • MSI-DR8A cannot work properly with Virtual Disc 7!!!

    Hi,
    I need some help to troubleshoot my MSI DR-8A. All the burning programs I tried so far, e.g. Nero, Roxio could work adequately well with my MSI DR-8A, but Virtual CD 7 for some reason does not work properly. I can only burn my DVD at 1X speed in Virtual CD 7!
    Anyone knows why???

    I've yet to use Virtual CD to burn anything but if you need a virtual drive as well as burning software, I'll recommend Alcohol 120%.

  • Does the Mac Operating System not work properly with Youtube?

    I noticed that my Messages on youtube are instantly deleted when I comment on some peoples Youtube channels. I don't think its the person that owns the youtube channels doing it because it is deleted almost instantly after I log out. It's very odd and I don't think its youtube censoring my comment because I'm not cursing in the comment and I don't believe cursing is against the TOS on Youtube anyways.
    Another thing I notice is that when I'm on a flash based chatroom that when someone I am talking to has left the chatroom it will still say they are in the chatroom until I click on my friendlist and than they turn red as if they are gone. It is very odd that I am noticing these strange bugs. However the chatroom thing could be a chatroom problem because it might do that on my Windows side which I never checked because I'm usually on that chatroom on my Mac side.

    The Adobe flash version could be checked to see if the system is actually using
    their latest version (see Adobe, not a third party prompt from elsewhere to get it)
    as that may be dated or you may have a newer -and- older Flash, and if so,
    the later one may not be in use. Within OS X you can choose the newer one.
    http://helpx.adobe.com/flash-player.html
    {see the links further down in the above linked page, should you have additional
    Mac OS X problems with Flash player or issues in general with installing it}
    Also, some of youtube can be run in HTML5 and depending on the author, should
    be visible even without a Flash player installed. youtube is a google product and
    they also have a help section for dealing with their content. And browser settings
    may affect how things work. Depending on what browser you use, this varies.
    Good luck & happy computing!

  • My ipad2 cannot find my HP A3050 j661b airprint printer although the printer is connected with the same wifi network.Software updates are current on all and my other labtops also work properly with this printer in the same network.Further more it used to

    My Ipad 2 cant find my HP3050A j661b airprint printer although the printer is connected to the same wireless network and software updates are current on all and my other laptops also work properly with this printer.further more it used to work with my IPAD2 before when I used the old wireless router but now I changed it to HAUWEI HG231f but I set everything in the same way it was. Thanks in advance.

    When you change to the new router, did you re-run the CD to re-set the new SSID and password to the printer.
    Otherwise your iPad will not be able "talk" to your printer.

  • Will Dreamweaver CS4 work properly with 10.6.1 Snow Leopard?

    Hello
    Can anyone tell me please, if Adobe Dreamweaver CS4 work properly with my MacBook OS 10.6.1 Snow Leopard? Adobe state "Mac OS X v10.4.11–10.5.4" in the system requirements, but does this mean, in practise, that Dreamweaver will not work properly with Snow Leopard?
    I have tried to find info about this here, but have spend ages wading through masses of complaints about various applications crashing for people after they upgraded to 10.6.1 Snow Leopard. Personally, touch wood, I've had no problems with Snow Leopard, but I only really use it for Internet surfing and word processing (my work, music stuff on Logic Pro 8, is done on my Mac Pro which came with Leopard and which I am NOT upgrading - not yet!).
    I have also attempted to get an answer from Adobe - I 'phoned their "Pre-sales enquiries" number 0800 028 0148 (in the UK) and spoke to someone who sounded as if she was on the moon and who clearly had absolutely no idea what I was talking about. I gave up with them! They didn't give an email address to ask on.
    I'd be very grateful if anyone can give a clear, authoritative answer please - if possible.

    I've been a Mac user since 1987 and have never upgraded the OS too soon after a new version was launched. Any new OS, like new houses, will have a 'snagging list' - unforeseen problems that arise and need to be sorted before your purchase is truly habitable and functions as expected.
    But the stability of OS X 10.5 paved the way for my lapse of judgement when I upgraded to Snow Panther last week, while its compatibility with some major software is still clearly too buggy.
    I've been using Dreamweaver (DW) CS4 successfully on OS X 10.5 for some time. Since installing OS X 10.6.1 I now have problems with DW, which I've alerted Adobe to.
    When using Design View in DW CS4, any formatted text - from html tags to css tags - disappears from the Design view. The code appears correctly in the Code window and even if you highlight text that has coding attached in Code view - eg text with a url link attached - the Design view continues to ignore it and removes the text from its view. I've discovered that my heading tags (h1, h2, etc) all make the text disappear in Design view in a way that would be the envy of members of the Magic Circle! The only thing that seems to get through is text that is surrounded by paragraph tags.
    Thing is that 'Preview in Browser' shows the page correctly (except in Opera, which I've only installed since installing Snow Leopard, so I can't say how this displayed in the previous OS versions).
    Also when I upload the site to the server it all seems to display more or less as it should.
    So currently it seems that DW CS4's Design view is no longer WYSIWYG! Expect to find lots of text hidden in Design view and have to use Code view much more.
    It would be nice to think that Apple and Adobe would talk to each other and work it out between them.
    re: Dreamweaver, I'd check back to Adobe.com regularly to see when they upgrade the OS requirements to 10.6.1 (I hadn't spotted before I bought Snow Leopard that they only go up to 10.5 in their OS recommendations).
    My advice if you're thinking of upgrading to Snow Panther: delay it until it more of it works compatibly with your major applications. Check the OS spec from each software manufacturer first. Meanwhile I'll just have to wait patiently for Apple & Adobe to get their act together...
    Message was edited by: bcmartin

  • HP computer will not work properly with an HP printer

    I have the following two items that I am trying to use together:
     - HP 23" TouchSmart Desktop, T6500 2.1GHz 4GB DDR3, 500GB HDD (Windows 7)
     - HP OfficeJet 6500 Multi-Function Printer/Scanner/Fax
    When I try to scan to Adobe Acrobat Professional 9.0, the document goes through the scanner, however the dialog box that I would expect (e.g. "Next Page" or "Done") never shows up.  At this point, the system is unresponsive with respect to Adobe or the printer.
    I suspect that it is waiting for the input from the dialog box that never showed up.  I tried to move the other windows to see if the dialog opened in the background, however I am not able to select any of them (they remain frozen).
    I contacted HP Support, only to have them tell me it must be the driver, and I have an "old" printer.  (I did not realize that a 9 month old printer was considered "old").  I have tried all of the possible drivers that are available (original disk, downloads, other downloads from HP tech support), none of these resolves the problem.
    In any case, they were unable to resolve the problem of having an HP computer work properly with an HP printer.  (The printing function seems to work, just very slowly).
    Has anyone else heard of this?  Is there a resolution?

    Update: I am still looking for a solution to this problem - the scanning portion of the Multi-function OfficeJet 6500 does not work properly with the HP TouchSmart computer.
    I have not been able to find anyone in HP that can tell me when (or if) new drivers will be released for this printer.
    I decided to investigate upgrading to a newer version of printer since HP told me the 9 month old printer I have was "obsolete", only to find that the identical printer is still on sale in many stores.  Hmmm....
    I feel like I am getting the run-around from HP.
    I have since tried several more driver/software combinations, but every time I have the same problem (as described in the previous post).
    If anyone has any ideas or suggestions, I would be most happy to hear them.
    Thank you.

  • Win 7 VPN Client 5.0.07 no longer works properly with Citrix DNE Update

    Since Cisco Systems VPN Client does not work properly with mobile broadband on Windows 7, we've been successfully using Citrix's DNE Update to fix this for about 6 months. All of a sudden, machines with the DNE Update stopped working properly over VPN (whether using mobile broadband or not). The only fix is to unbind the DNE Lightweight driver from your network adapters, uninstall the DNE Update and reinstall the VPN Client. However, then you cannot use an aircard with VPN as the DNE Update was the fix.
    Symptoms of the VPN issues with DNE Update:
    -web pages displaying garbled
    -internal web pages not rendering at all
    -remote connectivity not working (VNC)
    -RDP connects then crashes with data encryption errors
    The only change that I can identify on our machines and in our environment would be Windows updates, but I've been unable to identify which one might have caused the problem.
    Has anyone encountered this issue and found a fix? Does anyone know of another reliable fix for VPN Client to work with Windows 7 and aircards?
    We're looking at moving to another VPN solution but that will take time and we need a more immediate solution.
    Thanks in advance for your help.
    Tony

    Hi Prapanch
    No offence . . . .  but you need to read the complete thread before posting re:IP address & gateway
    I'm not posting head end config because the config works with XP
    There are no W7 specific parameters with ASA 8.3(2)
    Multiple W7 machines have been used to test this.
    We are looking at extracting level 15 logs from the client end - I will post if they don''t give an obvious answer.
    TAC still not able to resolve this.
    Rgds
    Barry

  • Why isn't the scroll wheel working properly with Firefox 4?

    I have a new Windows 7 PC at work with Firefox 4 on it. The scroll wheel on my mouse is not working right. It will work if I use Internet Explorer but I have trouble getting it to work with Firefox. Usually what I have to do is click the wheel to get that mode of scrolling where you move the mouse up and down to scroll the screen and that will work. And then when I click the wheel again to get out of that mode, my scroll wheel will work as expected. But I don't want to have to do that all the time. And sometimes that trick doesn't work. The scroll wheel is working fine with MS Excel and Lotus Notes and Internet Explorer, etc, so it seems to be something the new Firefox has an issue with.

    I fixed my problem! I was messing around in msconfig to turn off Lync from my Startup list and noticed something called Mouse Suite 98 was in my Startup. I did a quick google check and learned I could remove it without doing any harm. And voila! My scrollwheel is working properly with Firefox, finally! Hope this helps someone out there.

  • Sum() function not working properly. Instead of summing, its showing total count of the rows

    We have migrated one application from .net framework 1.0 to .net framework  2 (from Visual studio 2003 to Visual STUDIO 2005). Now after migration we are facing some problem related to the sum function in Crystal report 10. It is not working properly.
    So we migrated to Crystal report XI release 2 (though still using evaluation version for testing purpose), the problem is not yet resolved.
    The problem we are facing is while using the summary in the group field, it is showing the number of rows instead of the sum of the values.
    We have checked the same with min-max functions, and it is working properly with those.
    We have tried to make the sum by formula field. In such case, it is not showing any syntactical error but at execution time, it is throwing an error saying "A number field or currency amount field is required here".
    In the  the report the datatype of the field on which we are applying the sum function, is number, and in the table from where the data is fetched, the datatype is numeric(9,6).
    Any idea why sum function is not working ?
    I was browsing the net and saw running totals can be a work around for such summation issues in Crystal Report XI.
    Can you please provide insight of how to implement running totals for summation purpose in solving such issues.

    Hi,
    Running totals are more accurate than Summary Totals in Crystal.  Why? ...ask Crystal.  Anyway, just right click on Running Totals, create a new one, and enter you fields, etc. For group totals, it gives you a place to reset the totals for each group, etc.  Pretty self explainatory. 
    Jim

  • Sum function not working properly in Crystal XI. Its showing total count of the values

    We have migrated one application from .net framework 1.0 to .net framework  2 (from Visual studio 2003 to Visual STUDIO 2005). Now after migration we are facing some problem related to the sum function in Crystal report 10. It is not working properly.
    So we migrated to Crystal report XI release 2 (though still using evaluation version for testing purpose), the problem is not yet resolved.
    The problem we are facing is while using the summary in the group field, it is showing the number of rows instead of the sum of the values.
    We have checked the same with min-max functions, and it is working properly with those.
    We have tried to make the sum by formula field. In such case, it is not showing any syntactical error but at execution time, it is throwing an error saying "A number field or currency amount field is required here".
    In the  the report the datatype of the field on which we are applying the sum function, is number, and in the table from where the data is fetched, the datatype is numeric(9,6).
    Any idea why sum function is not working ?
    I was browsing the net and saw running totals can be a work around for such summation issues in Crystal Report XI.
    Can you please provide insight of how to implement running totals for summation purpose in solving such issues.

    Are you seeing this happen in the Crystal designer as well, outside of any .NET application?

  • Why can't I get open type features to work properly with an open type font on InDesign CS5.5?

    I installed a very complete set of styles of an opentype font with Font Book – Mac OS X 10.9.4 – but when I tried to format a sample text on InDesign CS5.5 I noticed that I could not use the opentype features on the Open Type menu as I usually do.
    Could anyone help me, please?

    It's ffScala Sans, but has separate files for small caps, figures, etc.
    I was trying to use small caps, lining figures and superscripts when I
    noticed none of the OT features are available.
    2014-07-30 21:56 GMT+01:00 Miguel Sousa <[email protected]>:
        Why can't I get open type features to work properly with an open type
    font on InDesign CS5.5?  created by Miguel Sousa
    <https://forums.adobe.com/people/MiguelSousa> in Adobe Type - View the
    full discussion <https://forums.adobe.com/message/6598614#6598614>

  • Some of my application in macbook pro doesn't work properly with Os Yosemite, such as dictionary and  MplayerX and etc

    I face to this problem since new OS, Yosemite has installed on my mac book
    some of my application in macbook pro doesn't work properly with Os Yosemite, such as dictionary (mac dictionary) and  MplayerX and etc
    For example when I make MplayerX and such application fullscreen the screen become white and just voice of video can be heard  or when I use Mac Dictionary (look-up dictionary) in any pages the meaning of work is not appear ( look at the picture above), so i need to directly open dictionary to find the meaning.
    Please help me
    tq

    Same thing here with MPlayerX (annoying)

  • Does Ichat screen sharing work properly with Lion OSX?

    Hello, I am planning to install the new OS Lion soon. However, I was wondering if the Ichat screen sharing works properly with Lion. I use the screen sharing quite a lot to communicate with my co-workers, so it's a deal breaker if the app crashes when using the screen sharing option. Thank you!

    Hi,
    I have not seen a post where it has been reported to be a problem.
    9:12 PM      Friday; August 12, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Will the newest version of Safari Mavericks work properly with Snow Leopard?

    Will the newest version of Safari Mavericks work properly with Snow Leopard?

    Are you asking if you can install Mavericks on a machine running Snow Leopard?
    Upgrade to Mountain Lion/Mavericks.
    Check that your computer is compatible with Mountain Lion/Mavericks.
    To check the model number hold down the option/alt key, go to the Apple menu and select System Information.
    iMac (Mid 2007 or newer) model number 7,1 or higher
    MacBook (Late 2008 Aluminum, or Early 2009 or newer) model number 5,1 or higher
    MacBook Pro (Mid/Late 2007 or newer) model number 3,1 or higher
    MacBook Air (Late 2008 or newer) model number 2,1 or higher
    Mac mini (Early 2009 or newer) model number 3,1 or higher
    Mac Pro (Early 2008 or newer) model number 3,1 or higher
    Xserve (Early 2009) model number 3,1 or higher
    Your Mac needs:
    OS X v10.6.8 or OS X Lion already installed
    2 GB or more of memory (More is better - 4 GB minimum seems to be the consensus)
    8 GB or more of available space
    Check to make sure your applications are compatible. PowerPC applications are no longer supported.      
    Application Compatibility
    You can also check which applications are PowerPC by going to the  menu, select About this Mac, click on More info…, then click System Report and select Software/Applications.
    If you do decide to upgrade, make sure you do a backup before installing.

Maybe you are looking for

  • Different routes in free goods

    Dear Experts, Is it possble to have different routes in the items with free goods..? Material B is given as free goods with material A. Both are from same plant and shipping point is also same. Both materials have different transportaion groups. In t

  • Web services Publisher Error

    Hello Experts, I am ruuning down with an issue in Web I - web services publishing. When i tried to Publish the report as Web services Url, it says Connection time out. I tried to Add host in manage servers area (which is blank ), again it says "conne

  • ITunes and CD-Text

    Will Apple ever open iTunes to facilitate CD-Text? I have found scripts for the Mac but nothing for the PC to allow iTunes to use CD-Text. Official Support for it would make sense considering that a great portion of the world's computer users still h

  • Can you play this url? (JMF error 'could not create player for')

    Hello, I can play this url in Windows Media Player http://anon.vht.com.edgesuite.net/dl/deg18-062405-2425.wmv However when I try to play it in JMStudio 2.1.1e, I get error "could not create player for deg18-062405-2425.wmv" Any help appreciated, than

  • I am unable to set up my iCloud as won't let me accept terms and conditions, then says unable to connect to server.  Any help would be appreciated :)

    Please can someone help, I am just trying to set up iCloud on my iPad.  When I click on accept terms and conditions it says unable to connect to server? I have googled how to do this, forums suggest to open a find friends app, then try to reconnect.