10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Below are three variables, which I want to pass into variable RESULT1
username1=userid
poihostname1=dellsys.com
port1=8080
How can I pass these variables into below code...
RESULT1=$((ssh -n username1@poihostname1 time /usr/sfw/bin/wget --user=sam --password=123 -O /dev/null -q... (4 Replies)
Discussion started by: manohar2013
4 Replies
2. Shell Programming and Scripting
I use csh a lot but I don't really write csh scripts. Now I have a need to implement a security check (written in perl; verify an user input security code) into a csh script. Here is the senario:
#csh
1. call the perl script
2. if the perl script returns 'true', pass on;
if the perl... (1 Reply)
Discussion started by: Julian16
1 Replies
3. Programming
Hello,
I have the following problem:
I have makefileproj and makefilemod in a build process for a complex project - from makefileproj I call the makefilemod.
In makefilemod I generate a list containing objects eg,: "../../../25_Build/Results/Objects/FBL/Fls.o... (4 Replies)
Discussion started by: marina_lmv
4 Replies
4. Shell Programming and Scripting
Hi,
I was trying to do something where I would be able to export one local variable in a telnet subshell to its parent shell.
I found something like this over here, but couldnt exactly understand it :(.
I am referring to this part actually:
#! /usr/bin/ksh
exec 4>&1
tail -5 >&4 |&
exec... (4 Replies)
Discussion started by: King Nothing
4 Replies
5. Shell Programming and Scripting
Hello,
I have a csh script that creates an environment variable. I want to pass the environment variable(CURR_TABLE_DATE) to an Informix sql script. Here is the csh:
#!/bin/csh -f
setenv INFORMIXSERVER market3_tcp
setenv CURR_TABLE_DATE 20090714
set DATABASE = gm_cdr
set SQL_DIR =... (0 Replies)
Discussion started by: jwoj
0 Replies
6. Shell Programming and Scripting
Hi there!
I'm trying to write a script that will capture output from a command and assign it to a variable.
Let's say, for example, I'd like to catch from inside the script whatever the following command outputs:
ls *.aaa
and put it into a variable "listoffiles".
What I tried was:
set... (3 Replies)
Discussion started by: machinogodzilla
3 Replies
7. Shell Programming and Scripting
Hello all
i need to pass to my shell script parameter that looks like "2 3 3"
inside the script i need to use this string that looks like this "2 3 3"
but when i try to print the script im getting syntax error , this is my script :
set s = $1
echo $s (1 Reply)
Discussion started by: umen
1 Replies
8. Shell Programming and Scripting
I have a question about how to change variables in parent shell.
My script, test.sh, is below:
#!/bin/sh
# test.sh
PATH=.
The commands I ran for test:
$ echo $PATH
.:/usr/bin:/usr/sbin:/usr/local/sbin:
$ sh test.sh
$ echo $PATH
.:/usr/bin:/usr/sbin:/usr/local/sbin:
... (1 Reply)
Discussion started by: pankai
1 Replies
9. Shell Programming and Scripting
Hi All,
I am trying to put the csh variable into a perl.
In the below case, i am trying to put the csh variable "var" into my perl code. I tried to use '"$var"' but i don;t think it works.
Can anybody help me pls?
#!/bin/csh
set var = `echo "xxx"`
perl myperlcode.pl file
... (9 Replies)
Discussion started by: Raynon
9 Replies
10. UNIX for Dummies Questions & Answers
Hi,
I am using bash and need to run a set of tcsh scripts that set environment variables. Is there a way to do this? Any help greatly appreciated. (3 Replies)
Discussion started by: konndanley
3 Replies
XtMenuPopdown() XtMenuPopdown()
Name
XtMenuPopdown - built-in action for popping down a widget.
Synopsis (Translation Table)
<Event sequence>: XtMenuPopdown([shell])
Inputs
shell An optional argument which specifies the name of the shell to pop down.
Availability
This action is named MenuPopdown prior to Release 4.
Description
XtMenuPopdown is a predefined action procedure which does not have a corresponding public C routine. It can only be invoked from a trans-
lation table. If passed an argument, that argument is interpreted as a shell name, and XtMenuPopdown tries to find the named shell by
looking up the widget tree starting at the parent of the widget in which it is invoked. If it finds a shell with the specified name in the
popup children of that parent, it pops down the shell by calling XtPopdown(); otherwise, it moves up the parent chain as needed. If
XtMenuPopdown gets to the application top-level shell widget and cannot find a matching shell, it generates a warning and returns immedi-
ately. If XtMenuPopdown is called with no argument, it calls XtPopdown() on the widget for which the translation is specified.
Usage
Note that XtMenuPopdown is an action procedure; you cannot call it from C code.
The action name MenuPopdown is a synonym for XtMenuPopdown. Either action can be used to pop down menus or other popup shells.
Popup shells can also be popped down by calling XtPopdown() explicitly, or by using the predefined callback procedure XtCallbackPopdown().
The action XtMenuPopup can be used to pop up a spring-loaded popup from a translation table.
See Also
XtCallbackPopdown(1), XtMenuPopup(1), XtPopDown(1), XtPopup(1), XtPopupSpringLoaded(1).
Xt - Pop Ups XtMenuPopdown()