I have the following problem, i created a script to use winexe, from the command line its working
Code: Select all
winexe -U administrator --password=******** //ipaddress "C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe c:\MegaCLI\Temp.Disk1.ps1"
If i put this command in a shell script like this:
Code: Select all
#/bin/bash
winexe -U administrator --password=******** //ipaddress "C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe c:\MegaCLI\Temp.Disk1.ps1"
But if i run this from cacti pollertype cmd.php then the output is U.
I looked at this forum and on google, the only results i got back was the using of special characters, so i removed them. And file permission, i changed that to the cacti user/group.
I hope somebody can help
Thanks in Advance
Regards