Okay, I can call an app and pass parameters to it from another mac just fine.
But, I’m looking for a way to do it from an IBM AS400. For the past few years we’ve done this by spooling text files via ftp. Now, I really need to make direct calls - and while I can limp around I am not a 400 programmer - desperately hoping someone here has access to this knowledge.
I can do this in a number of ways from another mac - telnet - ssh - eppc, I can even do it from our 400 over telnet. Unfortunately none of the 400 programmers in our shop know how to script telnet; here is the basic syntax of the remote command-
osascript -e 'tell application "someapp" to someHandler(param1,param2)'
In the reverse situation, I use ftp subcommands to call CL’s on the 400 from my eMac. Stands to reason I should be able to do the reverse - not that I can see.
I also tried enabling rexecd (scary) and using the 400 command RUNRMTCMD. From the syslog, I am able to see that I am making contact with my eMac as soon as I send the remote command, but the spooled message back on the 400 is “Invalid Password”. But, the password is correct. To be thorough, here is that command - note I was simply trying to send a command to make my eMac beep.
RUNRMTCMD CMD('osascript -e "beep 3"') RMTLOCNAME('some.ip.add.ress' *IP) RMTUSER('myusername') RMTPWD('mypassword')
Now, I know this may be out there - but, I thought I’d try nonetheless. This board never fails to amaze me. I’ve scoured Midrange bbs’s - Google, and IBM’s site.