AppGate Forum  
Home | Help | Search | Login | Register | AppGate Main Web

Author Topic: Mindterm (FREE Edition) - Execute Command on Server  (Read 877 times)

jstlouis

  • Newbie
  • *
  • Karma: 0
  • Posts: 3
Mindterm (FREE Edition) - Execute Command on Server
« on: February 22, 2010, 06:25:42 pm »
Hi All,

I've just downloaded the Free Edition of Mindterm SSH for testing purposes and have a quick question that I need assistance with.

According to the Mindterm FAQ, I should be able to execute a single command on the server during initial user login.

Each time the command goes to execute, the Mindterm Window closes on me.  Here are the parameters I'm currently using, including the "force-pty" parameter:

Code: [Select]
<APPLET CODE="com.mindbright.application.MindTerm.class"
ARCHIVE="libraries/mindterm/mindterm.jar" WIDTH=0 HEIGHT=0\>
 
<PARAM NAME="cabinets" VALUE="mindterm.cab">
<PARAM NAME="server" value="localhost">
<PARAM NAME="port" value="22">
<PARAM NAME="username" value="username">
<PARAM NAME="password" value="password">
<PARAM NAME="term-type" value="vt100">
<PARAM NAME="quiet" value="true">
<PARAM NAME="bg-color" value="white">
    <PARAM NAME="fg-color" value="black">
    <PARAM NAME="passthru-prn-enable" value="true">
    <PARAM NAME="exit-on-logout" value="true">
    <PARAM NAME="force-pty" value="true">
    <PARAM NAME="commandline" value="/bin/ls /home/username">
<PARAM NAME="sepframe" value="true">
        <PARAM NAME="debug" value="true">
       
</APPLET>


Any help would be very much appreciated.  I checked my /var/log/httpd/* logs and did not see any errors.  I also didn't find any in /var/log/syslog.

I'm currently testing on Fedora 11 and CentOS 5.


Thanks,

Jeff
Logged

jstlouis

  • Newbie
  • *
  • Karma: 0
  • Posts: 3
Re: Mindterm (FREE Edition) - Execute Command on Server
« Reply #1 on: February 23, 2010, 04:40:51 am »

I figured out my part of my problem, it's not that the command isn't executing, the Terminal just closes upon completion.

I used the "top" command as a test, which held the Terminal windows open until I pressed "q" to quit, then the Window closed.

So it would actually perform the "ls" command, then just close on me, before I realized anything even happened.


Is there a way to keep the Terminal window open after executing a command with the applet parameter "commandline"? 

I would like to be returned to the shell, so further manual commands may be executed.

 

Thanks again,

Jeff
Logged

maf

  • Administrator
  • Sr. Member
  • *****
  • Karma: 0
  • Posts: 93
Re: Mindterm (FREE Edition) - Execute Command on Server
« Reply #2 on: February 23, 2010, 03:10:44 pm »
Is there a way to keep the Terminal window open after executing a command with the applet parameter "commandline"? 

No, there is currently no such feature. But you might be able to get the same effect by setting commandline to something like "ls; /bin/sh". However I have not tried this.

    /MaF
Logged
Pages: [1]
« previous next »
 

Pages: [1]
Print Print
Powered by MySQL Powered by PHP Powered by SMF 2.0 RC1.2 | SMF © 2006–2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!