Xshell Forum

using script with current session

Last post: Friday, November 27, 2015 12:02 AM by Support, 1 reply

 
Tuesday, November 24, 2015 1:18 PM - fablefox

using script with current session

 
Is there a way to use a script on current session? Does it have to start with ssh?

i need an example where i want to run a long command


insert a very long command my_name and even more long command my_name2

i just want a dialog to pop up asking my_name, put into variable and then for my_name2,

then send it to screen and carriage return.

Program Ver. : Xshell 5
Friday, November 27, 2015 12:02 AM - Support

Re: using script with current session

 
Here is a simple script which prompts a dialog box where a user can input string:

Sub Main()
Description = "You name?"
Title = "Prompt Example"
DefaultValue = "My name is "
IsPassword = FALSE

myName = xsh.dialog.prompt(Description, Title, DefaultValue , IsPassword) + vbCr
xsh.Screen.Send(myName)
End Sub

Technical Support

Like us on Facebook
Follow us on Twitter
Visit our blog Blog