system("//$Server/c\$/temp/ChPass.exe $Server");
You are putting the server name on the command line which the script would see in @ARGV but the script is trying to read (from STDIN?), so you want something more like: system("echo $Server | //$Server/c\$/temp/ChPass.exe"); just to give one example of a way to do it.
Note, however, that running "//$Server/..." just copies the script from that server and runs it on the local computer! To have the script actually run on a remote computer requires more than just file sharing. See Using WMI for create a remote Process on Win32 for one example of how to do that.
- tye (but my friends call me "Tye")In reply to (tye)Re2: my compiled perl script is waiting for input
by tye
in thread my compiled perl script is waiting for input
by RayRay459
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |