29.06.2013 Views

Qshell Interpreter (qsh) - FTP Directory Listing - IBM

Qshell Interpreter (qsh) - FTP Directory Listing - IBM

Qshell Interpreter (qsh) - FTP Directory Listing - IBM

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Starting the subsystem<br />

The following example shows how to start the subsystem described in the previous<br />

example and the server program.<br />

STRSBS SBSD(QGPL/QSHELL)<br />

SBMJOB CMD(CALL QGPL/SERVER)<br />

JOB(SERVER)<br />

JOBD(QGPL/SHELL)<br />

JOBQ(QGPL/SHELL)<br />

USER(QSHSVR)<br />

[ Legal | AS/400 Glossary ]<br />

Creating and running the client program<br />

Creating the client program<br />

Running the client program<br />

The following example shows how to create the client program on AIX using xlc.<br />

The example assumes that the source for the client program is in file <strong>qsh</strong>c.c in the<br />

current working directory. The client program has been compiled and tested on AIX<br />

4.1.5 using xlc and Linux 2.0.29 using gcc 2.7.2.1.<br />

xlc -o <strong>qsh</strong>c <strong>qsh</strong>c.c<br />

The following example shows how to run the client program and connect to a server<br />

running on system myas400. Before running the command, there must be an entry<br />

in your x/.netrc file for the specified system and the server must be started and<br />

listening on TCP/IP port 6042.<br />

<strong>qsh</strong>c myas400<br />

[ Legal | AS/400 Glossary ]<br />

Chapter 6. Remote client examples 135

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!