The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: X10 scripting in HAL




To ftp a log file onto a webserver (
http://users.pandora.be/see/xpl/log.htm
), I use of the following
script in HAL:

sub FtpLog()
if sys.value("ftpneeded") = true then
Set ws = CreateObject("WScript.Shell")
ret0 = ws.Run("e:\tools\ftp\transfer.cmd",0,true)
if ret0=0 then 'success
sys.value("ftpneeded") = false
end if
end if
end sub


The transfer.cmd calls the dos ftp tool passing it yet another script file.

Is it safe to call  CreateObject("WScript.Shell") and use that to
run
shell scripts from inside HAL triggers ?  (It is working...)  Maybe
there is a more straightforward way ?

Thanks,
Tom


xPL Links: http://www.xplproject.org.uk http://www.xplhal.com http://www.xpl.myby.co.uk
To Post a Message: ukha_xpl@xxxxxxx
To Subscribe:  ukha_xpl-subscribe@xxxxxxx
To Unsubscribe:  ukha_xpl-unsubscribe@xxxxxxx

xPL Main Index | xPL Thread Index | xPL Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.