kirkster Posted March 21, 2007 Share Posted March 21, 2007 First just say hello to everyone! Hope you can help me out if possible. I'm using a php page to send a command to a unix box and for some reason its chopping off half of the string String below :- $cmdline_start = "rsh sun52 -n " . chr(34) . "/AAHELP/live/system/AAHELP_boot_central START CSWRITE sun52_LBCSH " . $service . " Phoenix > /AAHELP/live/tmp/PHOENIX.LOG 2>&1 <" . "/dev/null &" . chr(34); Everything after the 2>&1 < part is cut off, however if i remove the < character it puts the rest of the string in. Please help! Much appreciated Kirky! Link to comment https://forums.phpfreaks.com/topic/43645-help-please/ Share on other sites More sharing options...
Iceman512 Posted March 21, 2007 Share Posted March 21, 2007 Hi Kirkster, This just a suggestion, but try using either the html or php equivelants for your 'and' operator. Either & in html or && for php? Hope that helps you Regards, Iceman Link to comment https://forums.phpfreaks.com/topic/43645-help-please/#findComment-211901 Share on other sites More sharing options...
kirkster Posted March 21, 2007 Author Share Posted March 21, 2007 Didn't work Iceman Ended up losing the entire string Link to comment https://forums.phpfreaks.com/topic/43645-help-please/#findComment-211903 Share on other sites More sharing options...
Iceman512 Posted March 21, 2007 Share Posted March 21, 2007 Sorry man, Now I'm as confused as you are! Iceman Link to comment https://forums.phpfreaks.com/topic/43645-help-please/#findComment-211912 Share on other sites More sharing options...
per1os Posted March 21, 2007 Share Posted March 21, 2007 Let's use the [ code ] [ /code ] tags. It may help alot. Link to comment https://forums.phpfreaks.com/topic/43645-help-please/#findComment-212001 Share on other sites More sharing options...
UTAlan Posted March 21, 2007 Share Posted March 21, 2007 Try < for <, > for >, and & for &. $cmdline_start = "rsh sun52 -n " . chr(34) . "/AAHELP/live/system/AAHELP_boot_central START CSWRITE un52_LBCSH " . $service . " Phoenix > /AAHELP/live/tmp/PHOENIX.LOG 2>&1 <" . "/dev/null &" . chr(34); Link to comment https://forums.phpfreaks.com/topic/43645-help-please/#findComment-212016 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.