Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Search Forums

Showing results 1 to 5 of 5
Search took 0.00 seconds.
Search: Posts Made By: liang
Forum: Scripting 10-30-2014, 05:13 AM
Replies: 8
Views: 6,698
Posted By liang
Question Another problem:ImportError:No module named _socket

Dear Todd,
I meet a new problem when I try to get localhost IP address.


# $language = "Python"
# $interface = "1.0"
import sys, time, os, socket;
# homePath like 'D:\Script\SecureCRT'...
Forum: Scripting 10-30-2014, 05:06 AM
Replies: 8
Views: 6,698
Posted By liang
Thumbs up issue fixed!

Dear Todd, thanks for your suggestion and I have accomplished my goal as you said. followed my script :

# $language = "Python"
# $interface = "1.0"
import sys, time, os;
# get homePath like...
Forum: Scripting 10-15-2014, 09:56 PM
Replies: 8
Views: 6,698
Posted By liang
Thumbs up make it! thanks!

Hi Todd,
Thanks for your help!
ScriptFullName is just what I need,and I'm shamed that missed it when reading doc. And...
Forum: Scripting 10-15-2014, 01:02 PM
Replies: 8
Views: 6,698
Posted By liang
more

Dear Tod,
Thanks for your prompt response.
I use SecureCRT and use buttonbar to run my python script.
I can use crt.Arguments[0] to get parameters passed to this script.
But I cann't get the...
Forum: Scripting 10-15-2014, 12:40 PM
Replies: 8
Views: 6,698
Posted By liang
Question How to get script running path in code

Hi,
I have write a script(A.py) to execute command automatically.
In order to get device-list, A.py need to read a config file(B.ini).

Directory seems like:
--
-| A.py
-| B.ini

I mean to...
Showing results 1 to 5 of 5

 
Forum Jump

All times are GMT -6. The time now is 01:15 PM.