
PowerSync Analyzer Reference Manual
March 9, 2010
Sifos Technologies page
137
Users should be aware that when PSA software is installed the PowerShell initialization files
tclshrc.tcl
,
tclshrc_psapi.tcl
,
wishrc.tcl
, and
wishrc_psapi
are all read-only files. To modify them requires that permissions be
changed. Also, when software upgrades are performed, users should assume that any modifications made locally to
those files will be lost unless copies of those modified files are maintained in other directories.
Note that this sequence of events will happen every time PowerShell TCL is opened.
8.4.2.
Invoking a PowerShell TCL With Remote Command Processing
PowerShell TCL can also be opened in a manner where it will accept PowerShell (and TCL) commands passed through
a short ascii text file. The command passing file utilized is:
c:\Program Files\Sifos\PSA1200\Config\env\psa_command.txt
(
Microsoft Windows
)
$Home/Sifos/PSA1200/Config/env/psa_command.txt
(
Linux/Unix
)
Any outside program that can produce a file with PowerShell commands and arguments organized as list elements can
transmit commands to PowerShell TCL for execution. This file will be volatile in that as soon as it is created by the
outside program, it will rapidly be read and deleted by PowerShell TCL.
To place PowerShell into this Remote Command Processing mode, a
simple modification is made to the PowerShell TCL resource file
tclshrc.tcl
(
see Section 8.3 above
). Near the bottom of that file, the
commented
psa_echo
command is “
un-commented
” so that it will
automatically invoke when PowerShell TCL is invoked. This will
open PowerShell TCL in the command polling (or Remote Command
Processing) mode.
tclshrc.tcl
will also need to be configured to bypass the initial
connection dialog. Section 8.3 above discussed methods for
bypassing initial connection dialog and delay.
Note!
The above methods may also be applied with Wish shells using
the Wish shell resource file
wishrc.tcl
in place of
tclshrc.tcl
.
Figure 8.11
Remote PowerShell Test Script Executed Via tcl84.exe Execution
Figure 8.12
tclshrc.tcl Modified to Enable
Remote Command Processing
Summary of Contents for PowerSync PSA100
Page 26: ...PowerSync Analyzer Reference Manual March 9 2010 Sifos Technologies page 26 ...
Page 56: ...PowerSync Analyzer Reference Manual March 9 2010 Sifos Technologies page 56 ...
Page 84: ...PowerSync Analyzer Reference Manual March 9 2010 Sifos Technologies page 84 ...
Page 110: ...PowerSync Analyzer Reference Manual March 9 2010 Sifos Technologies page 110 ...
Page 120: ...PowerSync Analyzer Reference Manual March 9 2010 Sifos Technologies page 120 ...