#1
|
|||
|
|||
Python Script Parameters
I am executing my python script from the command line (example below). Is there a way to pass parameters to the python script?
c:\program files\vandyke software\Clients\SecureCrt.exe" /Script "C:\pythonfile\script.py" Thanks. |
#2
|
|||
|
|||
Hi theride,
You can use /ARG on the command-line to pass arguments to your script. More info can be found in the following Help file topics:
__________________
Thanks, --Brenda VanDyke Software Technical Support support@vandyke.com (505) 332-5730 |
#3
|
|||
|
|||
Thanks for the quick response. I am trying to pass two strings to the script. Can you help me out with the syntax.
c:\program files\vandyke software\Clients\SecureCrt.exe" /Script "C:\pythonfile\script.py" /ARG "string1 string2" |
#4
|
|||
|
|||
i figured it out, thanks.
|
#5
|
|||
|
|||
Hi theride,
Thanks for the update. For others that might come across this post, the /ARG option should precede each argument: SecureCrt.exe /Script "C:\pythonfile\script.py" /ARG "string1" /ARG "string2"
__________________
Thanks, --Brenda VanDyke Software Technical Support support@vandyke.com (505) 332-5730 |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | Rate This Thread |
|
|