Heloo..
I have coded in PHP telnet conn. and I can with no problem execute any command on my solaris machhine (PHP is on windows doing telenet conn to solaris)
for example I have script that works something on solaris I just add it to PHP code on windows and it executes it...BUT...only thing that can not be done is init 6 or restart of solaris...I can restart it from command line but thru PHP code it does not work..
PHP code is OK becouse I can execute any other script on solaris that does not have init 6 in it..any ideas???
my shell script is:
#!/bin/ksh -x
exec 2>/opt/tomcat/logs/meme/shutt.err
echo "has not been created">>/opt/tomcat/logs/meme/crFILE
init 6
and result from exec:
+ echo has not been created
+ 1>> /opt/tomcat/logs/meme/crFILE
+ init 6
again this works from command line machine restarts..but from PHP only init 6 does not work...any other command that I enter thru PHP for example ls cat or even same script:
#!/bin/ksh -x
exec 2>/opt/tomcat/logs/meme/shutt.err
echo "has not been created">>/opt/tomcat/logs/meme/crFILE
#init 6
but with # that works...
any hits??
I have coded in PHP telnet conn. and I can with no problem execute any command on my solaris machhine (PHP is on windows doing telenet conn to solaris)
for example I have script that works something on solaris I just add it to PHP code on windows and it executes it...BUT...only thing that can not be done is init 6 or restart of solaris...I can restart it from command line but thru PHP code it does not work..
PHP code is OK becouse I can execute any other script on solaris that does not have init 6 in it..any ideas???
my shell script is:
#!/bin/ksh -x
exec 2>/opt/tomcat/logs/meme/shutt.err
echo "has not been created">>/opt/tomcat/logs/meme/crFILE
init 6
and result from exec:
+ echo has not been created
+ 1>> /opt/tomcat/logs/meme/crFILE
+ init 6
again this works from command line machine restarts..but from PHP only init 6 does not work...any other command that I enter thru PHP for example ls cat or even same script:
#!/bin/ksh -x
exec 2>/opt/tomcat/logs/meme/shutt.err
echo "has not been created">>/opt/tomcat/logs/meme/crFILE
#init 6
but with # that works...
any hits??