Sponsored Content
Top Forums Shell Programming and Scripting Shell script to input as if from command line to the java program Post 302676881 by shitson on Wednesday 25th of July 2012 08:47:00 AM
Old 07-25-2012
Need more details, could you please describe the steps you take?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

executing the su command from a java program.

Say in unix (AIX) m/c, I am logged in with s1 user and want to start process p1 with user credentials of s2. I can do manually in this way: #su - s2 #enter password for s2> somePassword $ p1 But all this I have to do through a java program. How to pass the password through program. One... (1 Reply)
Discussion started by: shailendrat
1 Replies

2. Shell Programming and Scripting

How can I send the input of a read line command through a shell script

Hi All, I wish to automate the unix command 'su' through a shell script. I would like to pass the content of a file as password to 'su' command. My script is as below, #! /bin/sh su userA while read line do rpm -ivh $line done < pwd.txt where pwd.txt contains the password of... (6 Replies)
Discussion started by: little_wonder
6 Replies

3. Shell Programming and Scripting

Launching a C program that needs input from a shell script

hi there, i need some help, i am trying to run a script to launch a C program and a Java program but before running both I want to get a user input and then invoke both programs with input received. In the programs the inputs are not command line arguments. This is the code, after the java... (4 Replies)
Discussion started by: momal
4 Replies

4. UNIX for Dummies Questions & Answers

Bash script to delete file input on command line

1) I wrote a script and gave the desired permissions using "chmod 755 scriptname". Now if i edit the script file, why do i need to set the permission again? Didn't i set the permission attribute.. or if i edit the file, does the inode number of file changes? 2) I am running my unix on a server... (1 Reply)
Discussion started by: animesharma
1 Replies

5. UNIX for Dummies Questions & Answers

how to pass input from c program to shell script?

Hello.. I am developing a Graphical User Interface using GTK. As part of our project I need to take inputs from GTK entries and pass those inputs to shell script and use them in shell script. The problem which struck me is only limited number of inputs are getting passed to shell script. For now... (14 Replies)
Discussion started by: kalyanilinux
14 Replies

6. Shell Programming and Scripting

how to execute a unix shell script from a java program

Hi All, well , i am facing this problem.. i have tried a few sample codes but there isn't any solution . could anyone please give a sample code as of how to do this... Please see the below details...and read the details carefully. I have written some code, logic is 1)from... (4 Replies)
Discussion started by: aish11
4 Replies

7. Shell Programming and Scripting

Problem while Invoke Shell Script function from Java Program

Hi, I have create a Shell Script, with one function. I want to call the script file in Java Program. It working fine. but the problem is the function in the Shell Script is not executed. Please suggest me, Regards, Nanthagopal A (2 Replies)
Discussion started by: nanthagopal
2 Replies

8. Shell Programming and Scripting

Read input file with in awk script not through command line

Hi All, Do we know how to read input file within awk script and send output toanother log file. All this needs to be in awk script, not in command line. I am running this awk through crontab. Cat my.awk #!/bin/awk -f function test(var){ some code} { } END { print"test code" } (5 Replies)
Discussion started by: random_thoughts
5 Replies

9. Shell Programming and Scripting

Script to read command line input and change it to some form

Hi, I want to write a small code in which script changes command line input to some form. Example script.sh a1 a2 a3 a4 ..... output should be "a1|a2|a3|....." Number of inputs in command line can be any variable (2 Replies)
Discussion started by: Raza Ali
2 Replies

10. Shell Programming and Scripting

Executing the shell script through java program

Hi Team, Can you pls advise in java how can we call a shell script, actly I have a shell script at the following location /opt/dd/ajh.sh now I can execute this script by opening the session through putty by entering the servers details and password and then navigating to the following... (2 Replies)
Discussion started by: punpun777777
2 Replies
iwidgets::feedback(1)						  [incr Widgets]					     iwidgets::feedback(1)

__________________________________________________________________________________________________________________________________________________

NAME
iwidgets::feedback - Create and manipulate a feedback widget to display feedback on the current status of an ongoing operation to the user. SYNOPSIS
iwidgets::feedback pathName ?options? INHERITANCE
itk::Widget <- iwidgets::Labeledwidget <- iwidgets::Feedback STANDARD OPTIONS
background cursor foreground highlightColor highlightThickness See the "options" manual entry for details on the standard options. INHERITED OPTIONS
labelBitmap labelFont labelImage labelMargin labelPos labelText labelVariable sticky See the "labeledwidget" class manual entry for details on the inherited options. WIDGET-SPECIFIC OPTIONS Name: barcolor Class: BarColor Command-Line Switch: -barcolor Specifies the color of the status bar, in any of the forms acceptable to Tk_GetColor. The default is DodgerBlue. Name: barheight Class: BarHeight Command-Line Switch: -barheight Specifies the height of the status bar, in any of the forms acceptable to Tk_GetPixels. The default is 20. Name: troughColor Class: TroughColor Command-Line Switch: -troughcolor Specifies the color of the frame in which the status bar sits, in any of the forms acceptable to Tk_GetColor. The default is white. Name: steps Class: Steps Command-Line Switch: -steps Specifies the total number of steps for the status bar. The default is 10. DESCRIPTION
The iwidgets::feedback command creates a widget to display feedback on the current status of an ongoing operation to the user. Display is given as a percentage and as a thermometer type bar. Options exist for adding a label and controlling its position. METHODS
The iwidgets::feedback command creates a new Tcl command whose name is pathName. This command may be used to invoke various operations on the widget. It has the following general form: pathName option ?arg arg ...? Option and the args determine the exact behavior of the com- mand. The following commands are possible for scrolledtext widgets: WIDGET-SPECIFIC METHODS pathName cget option Returns the current value of the configuration option given by option. Option may have any of the values accepted by the scrolled- html command. pathName configure ?option? ?value option value ...? Query or modify the configuration options of the widget. If no option is specified, returns a list describing all of the available options for pathName (see Tk_ConfigureInfo for information on the format of this list). If option is specified with no value, then the command returns a list describing the one named option (this list will be identical to the corresponding sublist of the value returned if no option is specified). If one or more option-value pairs are specified, then the command modifies the given widget option(s) to have the given value(s); in this case the command returns an empty string. Option may have any of the values accepted by the iwidgets::feedback command. pathName reset Reset the current number of steps completed to 0, and configures the percentage complete label text to 0% pathName step ?inc? Increase the current number of steps completed by the amount specified by inc. Inc defaults to 1. EXAMPLE
package require Iwidgets 4.0 iwidgets::feedback .fb -labeltext "Status" -steps 20 pack .fb -padx 10 -pady 10 -fill both -expand yes for {set i 0} {$i < 20} {incr i} { .fb step after 500 } ACKNOWLEDGEMENTS
Sam Shen This code is based largely on his feedback.tcl code from tk inspect. The original feedback code is copyright 1995 Lawrence Berkeley Laboratory. AUTHOR
Kris Raney KEYWORDS
feedback, widget Tk iwidgets::feedback(1)
All times are GMT -4. The time now is 06:02 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy