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.
- 02-22-2012 #1
- Join Date
- Feb 2012
ftp client to run vbs script?
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.
- 02-22-2012 #2
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.
- 02-23-2012 #3
- Join Date
- Feb 2012
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"
' 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.Send "user_name" & VbCr
crt.Screen.Send "password" & VbCr
crt.Screen.Send "cd /var/opt/..." & VbCr
crt.Screen.Send "bin" & VbCr
crt.Screen.Send "ls -rt" & VbCr
crt.Screen.Send "prompt n" & VbCr
name = crt.Dialog.Prompt("Input File_name:","", False)
crt.Screen.Send "mget " & name & VbCr
crt.Screen.Send "bye" & VbCr
' turn off synchronous mode to restore normal input processing
crt.Screen.Synchronous = False
Openssh is probably the best option,
Now, I just need to write the new script if I can....
- 02-23-2012 #4
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.