Use the Shell as explained in the link:
http://sites.google.com/site/javabidev/Home/jsch
On Dec 2, 2011, at 4:26 AM, Erik Michel Giraldo Giraldo wrote:
Hello Keith, Thanks for the answer.
Actually the commands I have to do are going to be executed in a Fortigate CLI,
so I can not send them like that, what I need to do is:
(fotigatesrv)#configure global
(fotigatesrv)(global)#execute .... ... ....
And the fortigate cli does not accept multiple commands in the same line. Any
ideas?
Thanks!!!
On Fri, Dec 2, 2011 at 12:41 AM, Keith Alan Richardson
<[email protected]<mailto:[email protected]>> wrote:
One option if those are the only commands you need: ls /var/log
On Dec 1, 2011 10:42 PM, "Erik Michel Giraldo Giraldo"
<[email protected]<mailto:[email protected]>> wrote:
Hello,
Right now I need to execute multiple commands in single session, it has to be
executed in a Fortigate OS, it does not allow me to execute it with ";" between
commands, so I need to execute them like you normally do. Something like this:
root@localhost$ cd /var/log/
root@localhost$ ls
Which should return the files in log.
Thanks for your great help.
--
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Cordialmente;
Erik Michel Giraldo Giraldo
****Por favor considere su responsabilidad ambiental antes de imprimir este
correo.****
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
JSch-users mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/jsch-users
--
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Cordialmente;
Erik Michel Giraldo Giraldo
****Por favor considere su responsabilidad ambiental antes de imprimir este
correo.****
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users
RAM PANGULURI
[email protected]<mailto:[email protected]>
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users