Sponsored Content
Top Forums Shell Programming and Scripting Run expect script in systems that don't support it out of box Post 302070554 by namityadav on Wednesday 5th of April 2006 05:53:10 PM
Old 04-05-2006
The very commonly asked .. but unanswered requirement for a password change script

Noob question ..

My Java based application needs to change some user passwords based on some user actions. Since this application can run on Redhat AS2.1 / AS4.0 / Solaris 9 etc, the most safe and portable solution that I could think of was: Use expect.

Now, expect is not available on all platforms, and I don't want to install tcl / tk / expect to be able to run my application. So, what's the simplest way for me to achieve what I want to?

Keep a expect binary and required libraries in a local directory in the application? How can I do this? Any other ideas

Last edited by namityadav; 04-19-2006 at 09:11 PM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

how to run shell script inside expect script?

I have the code like this : shell script continues ... .... expect -c" spawn telnet $ip expect "login:" send \"$usrname\r\" expect "Password:" send \"$passwd\r\" expect "*\>" send \"$cmdstr\r\" ... (1 Reply)
Discussion started by: robbiezr
1 Replies

2. Programming

Expect script to run a Shell script on remote server

Hi All, I am using a expect script to run a shell script on remote server, the code is as follows. But the problem is that it executes only first command, and hangs it doesn't run the next commands. spawn ssh $uid@$host expect "password:" send "$password\r" expect "*\r" send... (2 Replies)
Discussion started by: yashwanthsn
2 Replies

3. Shell Programming and Scripting

EXPECT script for Telnet automation. Need your support.

Dear experts, please help me . I've found simple EXPECT scripts and all works fine. But I need more automation in error handling and sending list of commands/output logging from multiple remote hosts. I have 10 hosts, for example: host1 192.168.1.1 LOGIN1 PASSWORD1 ...... ... (2 Replies)
Discussion started by: starchen
2 Replies

4. Shell Programming and Scripting

Use expect to run an interactive shell script?

Hi all, I have a bit of a vexing issue here and I'm not certain how best to go about it. Basically, I want to run a shell script and automate the user prompt of hitting 1 to fully uninstall Symantec Anti-Virus for OS X. Would expect be the best way to do this? (5 Replies)
Discussion started by: prometheon123
5 Replies

5. Shell Programming and Scripting

Cannot get this bash/expect script to run under a crontab

#!/bin/bash # # RAP configuration script # # Usage: ./rap.sh # # Requires: expect, tcl # # Script expects to find a file called rap.csv located in the same directory as the script. If the file is placed # in a different directory, modify the custom entries section to specify the absolute... (8 Replies)
Discussion started by: mrkool
8 Replies

6. UNIX for Advanced & Expert Users

Unable to run the script on remote machine Using Expect script

Not able to execute the file in remote host using except utility I am automating the SFTP keys setp process: So i created the expect script for controlling the output of shell below is my main code: Code: #!/usr/bin/expect set fd set password close $fd set df set app close $df... (1 Reply)
Discussion started by: Manoj Bajpai
1 Replies

7. Shell Programming and Scripting

Notify when the script run(hourly)on my jump-box only when there is a failure on my remote-box

Team, Presently I have a script, which i have set up cron on one of my Jump-boxes,and gives me the output on every hourly basis,fetching the data from the remote machine.Basically it gives me the list of all active users logged and its count once we execute the script.Here the count is... (6 Replies)
Discussion started by: whizkidash
6 Replies

8. Shell Programming and Scripting

Script to Run Multiple Systems Checks and mail me the results after every reboot- Linux

Hello, I'm trying to create a mechanism wherein a set of Production servers will email me the results of system checks like Uptime, NFS Mounts and a Process after every scheduled reboot. For this, I figured I'd use the @reboot parameter that crond comes with. I have added the below onliner... (3 Replies)
Discussion started by: pocodot
3 Replies

9. Shell Programming and Scripting

In the script I get additional file, which I don't expect do get

I have the following script #!/bin/sh Usage () { echo "Usage: $0 <config_file>" echo "Example: ./sftp_ondemand_daily.sh /export/data/mbsesb/config/ond emand.cfg /export/data/mbsesb/config/filename.lst" exit 1 } if then Usage fi ... (6 Replies)
Discussion started by: digioleg54
6 Replies

10. Shell Programming and Scripting

A shell script to run a script which don't get terminated and send a pattern from the output by mail

Hi Guys, I am very new to shell script and I need your help here to write a script. Actually, I have a script abc.sh which don't get terminated itself. So I need to design a script to run this script, save the output to a file, search for a given string in the output and if it exists send those... (11 Replies)
Discussion started by: Sambit Sahu
11 Replies
javaws(1)						      General Commands Manual							 javaws(1)

NAME
javaws - a Java Web Start client SYNOPSYS
javaws [-run-options] jnlp-file javaws [-control-option] DESCRIPTION
javaws is an implementation of a JNLP client. It uses a JNLP (Java Network Launch Protocol) file to securely run a remote Java application or a Java applet. This implementation of javaws is from the IcedTea project and is based on the NetX project. A JNLP file is an xml file that describes how to securely run a remote Java application or a Java applet. OPTIONS
When specifying options, the name of the jnlp file must be the last argument to javaws - all the options must preceede it. The jnlp-file can either be a url or a local path. Control Options By default javaws will launch the jnlp file specified on the command line. The control options can be used to change this behaviour. -about Shows a sample application that can be used to test the basic functionality of this implementation. -viewer Shows the trusted certificate viewer. This allows a user to list, examine, remove or export trusted certificates. Note that this only reflects the certificates trusted by javaws and not any other certificates or programs. Run Options In the default mode, the following run-options can be used: -basedir dir Directory where the cache and certificates to be used are stored. -arg arg Adds an application argument before launching. -param name=value Adds an applet parameter before launching. -property name=value Sets a system property before launching. -update seconds Update check if seconds since last checked. -license Display the GPL license and exit. -verbose Enable verbose output. Very useful in debugging. -nosecurity Disables the secure runtime environment. -noupdate Disables checking for updates. -headless Disables download window, other UIs. -strict Enables strict checking of JNLP file format. Any deviations from the JNLP DTD will cause javaws to abort. -umask=value Sets the umask for files created by an application. -Xnofork Do not create another JVM, even if the JNLP file asks for running in a separate JVM. This is useful for debugging. -Jjava-option This passes along java-option to the java binary that is running javaws. For example, to make javaws run with a max heap size of 80m, use -J-Xmx80m. -help Print a help message and exit. FILES
~/.icedtea/deployment.properties specifies the settings used by javaws BUGS
There arent any known bugs. If you come across one, please file it at http://icedtea.classpath.org/bugzilla/ Please run javaws in verbose mode and include that output along with the jnlp file when filing out the bug report. AUTHOR
Originally written by Jon. A. Maxwell. Currently maintained by the IcedTea contributors. SEE ALSO
java(1) http://icedtea.classpath.org/ http://jnlp.sourceforge.net/netx/ 9 Sep 2010 javaws(1)
All times are GMT -4. The time now is 12:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy