Ver Mensaje Individual
  #7 (permalink)  
Antiguo 19/04/2012, 13:18
gverasf
 
Fecha de Ingreso: abril-2012
Mensajes: 3
Antigüedad: 12 años
Puntos: 0
Respuesta: Puedo Reiniciar un equipo remoto por comando ftp?

Por esa razon que mencionas es que hice la pregunta, por que en algunos sitios he encontrado el comando Quote, o Literal...

Estos comandos sirven para enviar un SubComando al Cliente Ftp donde nos queremos conectar.

Lo que no he podido entender por ejemplo, es mandar un comando que ejecute una aplicacion en un directorio en especifico.

Aqui les dejo una muestra, haber si me ayudan.

Gracias!

Fuente 1: [URL="http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=%2Frzaiq%2Frzaiqrcmd.htm"]http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=%2Frzaiq%2Frzaiqrcmd.htm[/URL]

Fuente 2: [URL="http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=%2Frzaiq%2Frzaiqrcmd.htm"]http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=%2Frzaiq%2Frzaiqrcmd.htm[/URL]

************************************************** ***
QUOTE (Send a Subcommand to an FTP Server)
The QUOTE i5/OS® FTP client subcommand sends a subcommand to an FTP server.

FTP client subcommand
QUOTE string

string
The server subcommand you want sent to and interpreted by the remote FTP server. The FTP server sends the string verbatim to the remote FTP server.
Notes:
The client requires the QUOTE subcommand to run the special i5/OS FTP server subcommand RCMD (Send a CL Command to an FTP Server System). For example, to write the FTP server job log to a spooled file, enter this:
QUOTE RCMD DSPJOBLOG
You can use the Work with Spooled Files (WRKSPLF) command to access the job log. If the WRKSPLF is run from a different user profile, you will need to specify the user profile of the user who logged in to the FTP server.

i5/OS FTP server limits the string to 1000 characters.
For the QUOTE subcommand, whatever you enter passes on to the FTP server. For example, if you enter:
QUOTE CWD 'SYS1'
The FTP server receives

CWD 'SYS1'
You can get help information from the FTP server by typing this:

QUOTE HELP
The FTP server sends the HELP subcommand to the remote host, which returns a display of all subcommands it supports. The information displayed varies depending on the type of remote host.

It should be noted that FTP server subcommands entered with the QUOTE subcommand only affect the FTP server, but similar client subcommands might affect both the client and the server. For example, the REIN client subcommand sends the FTP server a REIN server subcommand plus reinitializes certain client state variables. QUOTE REIN sends only REIN to the FTP server, but does not change any client state variables.

Note: Be careful when you use the QUOTE subcommand to directly enter server subcommands so that unintended results do not occur. Typically, use the QUOTE subcommand for special situations that cannot use other client subcommands. An example of this is when you want to use one of the special i5/OS FTP server subcommands like CRTL.