justinh Posted January 31, 2009 Share Posted January 31, 2009 I have this code: <?php chdir("C:\\Program Files (x86)\\teraterm\\"); $cmd = "TTERMPRO /C=5 /BAUD=57600"; echo $cmd; exec($cmd); ?> This opens up TTERMPRO fine, I was wondering how I can make it open up TTERMPRO ( with the settings a put in the cmd ) and then input "C" ( capital C followed by Enter ) into TTERMPRO. any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/143296-question/ Share on other sites More sharing options...
CarbonCopy Posted January 31, 2009 Share Posted January 31, 2009 Is the program you are running console based, or GUI? Most likely the answer is no, the best way of doing this is to make the program accept all input as command line arguments Quote Link to comment https://forums.phpfreaks.com/topic/143296-question/#findComment-751516 Share on other sites More sharing options...
justinh Posted January 31, 2009 Author Share Posted January 31, 2009 Well hmmm okay.. There's a CMD to load a terminal connection with a set MACRO, so I think I'm just going to have to make different Macro's for different functions, and then load them that way when needed. Quote Link to comment https://forums.phpfreaks.com/topic/143296-question/#findComment-751521 Share on other sites More sharing options...
.josh Posted January 31, 2009 Share Posted January 31, 2009 yeah...when you were asking earlier about it...I guess everybody kind of assumed you could run it from the command line. Since this is a windows program, there's a possibility you could use com to interact with it. Quote Link to comment https://forums.phpfreaks.com/topic/143296-question/#findComment-751522 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.