Run Remote Job

100 pts.
Tags:
AS/400
CLP
DataCenter
Email
PC/Windows Connectivity
Security
Servers
Systems management software
Greetings from New Jersey, USA. I hope you can help me find a way to run a job on a UNIX server from the AS/400. The situation is that Job A runs on the AS/400 and after it completes, a Job B has to run on the UNIX machine. At present we have an employee on the late shift who monitors Job A on the AS/400 and on it?s completion, signs on to the UNIX server, cuts the command from a WORD document and pastes it on the UNIX command line. The same command is run every night without any variation. I want to automatically run Job B on the UNIX machine as soon as Job A on the AS/400 completes. Thanks for your advice. Ash

Answer Wiki

Thanks. We'll let you know when a new response is added.

I’m not sure if it will help you or not, but, the AS400 has a telnet CL command. It’s likely you could add a call to the end of your first job to a program that would telnet in to the unix box, and type the necessary commands, and then disconnect.

Discuss This Question: 6  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Lbrossard
    Rather than telnet, wich I thnik is designed only as an interactive process, i suggest FTP, which can be used in batch at the end of you process to submit commands on you UNIX system. Rgs
    0 pointsBadges:
    report
  • Oldwood
    You can try to use the RUNRMTCMD in your Job A program. Example: RUNRMTCMD CMD('/as400dir/scripts/bjk1.csh') + RMTLOCNAME(UNIXNAME *IP) + RMTUSER('USERNAME') RMTPWD('PASSWORD') User name and password are case sensitive so you have to use quotes. Make sure that the user is set up on the Unix side. Hope this helps!
    15 pointsBadges:
    report
  • Pollywantsacracker
    Sounds like your shop should have a scheduling package. Check with the vendor of that package. Many have reactive jobs and know how to send commands to other platforms. If you don't have a scheduling package...check them out. Almost all of them will automate enough you can rest easy at night knowing the jobs are running.
    0 pointsBadges:
    report
  • Pollywantsacracker
    Sounds like your shop should have a scheduling package. Check with the vendor of that package. Many have reactive jobs and know how to send commands to other platforms. If you don't have a scheduling package...check them out. Almost all of them will automate enough you can rest easy at night knowing the jobs are running.
    0 pointsBadges:
    report
  • petkoa
    Hi ashnirody, As MODMOD suggested, you can accomplish the task with telnet/rsh client; however novadays odds are high your Unix server is running ssh server instead of telnet/rsh server... better get ssh client for AS/400, you can run any command on the remote side specifying it on the ssh command line. BR Petko
    3,120 pointsBadges:
    report
  • ShalomC
    The RUNRMTCMD option will work if you have rexecd running on the Unix box. Other yet unmentioned techniques include: Set up a web server with cgi on unix and get/post to it from as400 using a utility like geturi. mount from the as400 to a nfs volume, place a file when the as400 task ends, and a simple cron job can monitor for the file existence. mount from unix to as400, place a file when the as400 task ends, and a simple cron job can monitor for the file existence. If the unix hosts a database, then you can insert to it via jdbc from the as400 and start a trigger or a stored procedure. Cheers, ShalomC
    25 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following