Find the answer to your Linux question:
Results 1 to 4 of 4
Hi all, Do you know a ftp client to run visual basic scripts in linux? If you know SecureCRT, I am looking for a free alternative in linux. Thanks in ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2012
    Posts
    7

    ftp client to run vbs script?


    Hi all,
    Do you know a ftp client to run visual basic scripts in linux?
    If you know SecureCRT, I am looking for a free alternative in linux.

    Thanks in advance.

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,345
    Can you explain in more detail what you want to do?
    The information given doesnt make too much sense to me.

    - SecureCRT is a ssh client. It is not a ftp client, or do you mean sftp?
    And yes, there are quite a few ssh clients on linux. Openssh is probably the most prominent.
    - A ftp client will not "run visual basic". Probably copy it, but thatīs it
    - Afaik, the only way to execute Visualbasic under linux is with mono, but... why?
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    Feb 2012
    Posts
    7
    thanks in the first place,
    What i need is to download some remote files and I use secureCRT, but i have to say, it was all setup for me
    i am trying to find an alternative and to adapt the vbs script instructions, i dont really need to run vbs on linux, it was jus to avoid the translation to another scripting language. Now, I can see i should try to write the instructions from scratch

    This is the script by the way,


    #$language = "VBScript"
    #$interface = "1.0"
    Sub main
    ' turn on synchronous mode so we don't miss any data
    crt.Screen.Synchronous = True
    crt.Screen.Send "$" & VbCr
    crt.Screen.WaitForString "$ "
    crt.Screen.Send "ftp 10.xxx.xxx.x" & VbCr
    crt.Screen.WaitForString ":"
    crt.Screen.Send "user_name" & VbCr
    crt.Screen.WaitForString "ord:"
    crt.Screen.Send "password" & VbCr
    crt.Screen.WaitForString ">"
    crt.Screen.Send "cd /var/opt/..." & VbCr
    crt.Screen.WaitForString ">"
    crt.Screen.Send "bin" & VbCr
    crt.Screen.WaitForString ">"
    crt.Screen.Send "ls -rt" & VbCr
    crt.Screen.WaitForString ">"
    crt.Screen.Send "prompt n" & VbCr
    crt.Screen.WaitForString ">"

    name = crt.Dialog.Prompt("Input File_name:","", False)

    crt.Screen.Send "mget " & name & VbCr
    crt.Screen.WaitForString ">"
    crt.Screen.Send "bye" & VbCr

    ' turn off synchronous mode to restore normal input processing
    crt.Screen.Synchronous = False
    End Sub

    Openssh is probably the best option,
    Now, I just need to write the new script if I can....

    Thanks.

  4. #4
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,345
    Omg, awesome use of technology

    So what the IT guys set up for you is the following:
    - SecureCRT can be scripted via VB
    - It is used as a terminal here by VB
    - It calls an ftp commandline client.
    Mark the difference: SecureCRT is not the ftp client. It calls one and feeds it with information (given by VB)
    - You get logged into the ftp server automagically I guess.
    BTW: Good thinking, that you deleted IP/user_name/password before you posted here
    (At least I hope, user_name and password are not the actual user_name and password...)
    - After login, a window opens and asks for a filename.
    - This filename is then downloaded.

    As far as I can see, you would be able to replace SecureCRT and the script with any ftp client.
    Even IE, if there is absolutely no other choice. As IE can speak ftp.
    One possible client is filezilla

    You can do so, because you have access to that VB script, and therefore the ftp credentials in it.
    The script also tells the location of the files.

    But one thing is to consider:
    This construct was probably implemented for a reason.
    Maybe there is a policy around it.
    So in doubt consult with your IT guys.
    Last edited by Irithori; 02-23-2012 at 10:04 PM.
    You must always face the curtain with a bow.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •