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.
Printable View
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.
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? :D
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.
Omg, awesome use of technology :D
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.