Psexec + PHP redirect output character length limitation?

Spector

New member
I am writing a script that will be executed from a browser. The php script will execute a command on a remote server using psexec. The problem is there is a lot of data that spits out (6KB worth) but it will only output 1kb (1024 bytes/characters). I am not sure what is limiting this but I've tried everything. Here what's in my php script:

system('psexec -accepteula \\xxxserver1xxx bpdbjobs -all_columns -jobid 22222 > C:\myfile.txt');

The script works, but something is cutting off the data at 1024 bytes. Also, it will work fine if i manually login to the windows server, type in "php myfile.php". Or it works just fine in a browser if i use perl. Any ideas?
 
Back
Top