04-01-2008
For basic usage like this you really should look at the appropriate man pages.
I should begin with google on "ksh scripting" assuming you're using ksh.
Regards
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
First, I'd like to know if being a shell programmer considered a "real" programmer. is it??
also, I do create a lot of shell programs which includes full scripts to create users and maintaining records. ie phone records.
now, I hear the programmer has to do some cleaning up after the... (3 Replies)
Discussion started by: IMPORTANT
3 Replies
2. Shell Programming and Scripting
This is shell programming assignment.
It needs to create a file called .std_dbrc contains
STD_DBROOT=${HOME}/class/2031/Assgn3/STD_DB
(which includes all my simple database files)
and I am gonna use this .std_dbrc in my script file (read the data from the database files)
like this: .... (3 Replies)
Discussion started by: ccwq
3 Replies
3. Shell Programming and Scripting
I created a file named q2.c in /home/tuan/Desktop/Shell_programming. I coded a script named "test" to check whether the file existed or not. My code :
#!/bin/sh
submitDir=/home/tuan/Desktop/Shell_programming/submit
if
then
echo "There is no q2.c"
else
echo "There is q2.c"
fi
After... (3 Replies)
Discussion started by: thungmail
3 Replies
4. Shell Programming and Scripting
Hi i would like to write a "script" which takes a directory as an argument and the script will output the content of a file in this directory.Here is my code
#!/bin/sh
#set an argument to be a specified path
$1=/home/tuan/Desktop/Shell_programming/directory
#check if an argument is a... (3 Replies)
Discussion started by: thungmail
3 Replies
5. Shell Programming and Scripting
I have 2 different directories. The first has 2 sub-folders A and B. The second as 2 sub-folders C and D and script named "script".There is a code of "script" to list 2 sub-folders C and D
#!/bin/sh
for file in *
do && echo $file
done
I would like to ask how can I make a change if I... (2 Replies)
Discussion started by: thungmail
2 Replies
6. Shell Programming and Scripting
In folder A i have a file "a' and text file named infile00.I would like to do redirection :a<infile01.
There is a code to do this
#get a file "a" in /home/A
for file in /home/A/*
do
if $file ]
then
#printing out if file is an execute file
echo $file "is an... (2 Replies)
Discussion started by: thungmail
2 Replies
7. Shell Programming and Scripting
In folder A i have a file "a' and text file named infile00.I would like to do redirection :a<infile01.
There is a code to do this
#get a file "a" in /home/A
for file in `ls /home/A`
do
if
then
#printing out if file is an execute file
echo $file "is an execute... (6 Replies)
Discussion started by: thungmail
6 Replies
8. Shell Programming and Scripting
Hello all,
I am currently try to learn the linux operating system as well as some bash programming. I have come across some online course work which has been very helpful, I have been working through some assignments and since I have no teacher to ask I have come to you experts.
So the... (6 Replies)
Discussion started by: g2axiom
6 Replies
9. Shell Programming and Scripting
2- Write a bash shell script filestatic. The script should examine the number files in directories given as arguments (parameters) to this script.
a. if one argument is given, the script should count and report the number of files in this directory. Only regular files should be counted, not... (1 Reply)
Discussion started by: tahseen_22334
1 Replies
10. Homework & Coursework Questions
2- Write a bash shell script filestatic. The script should examine the number files in directories given as arguments (parameters) to this script.
a. if one argument is given, the script should count and report the number of files in this directory. Only regular files should be counted, not... (1 Reply)
Discussion started by: tahseen_22334
1 Replies
LEARN ABOUT X11R4
xtcreatepopupshell
XtCreatePopupShell(3) XT FUNCTIONS XtCreatePopupShell(3)
NAME
XtCreatePopupShell, XtVaCreatePopupShell - create a popup shell
SYNTAX
Widget XtCreatePopupShell(String name, WidgetClass widget_class, Widget parent, ArgList args, Cardinal num_args);
Widget XtVaCreatePopupShell(String name, WidgetClass widget_class, Widget parent, ...);
ARGUMENTS
args Specifies the argument list to override the resource defaults.
name Specifies the text name for the created shell widget.
num_args Specifies the number of arguments in the argument list.
parent Specifies the parent widget.
widget_class
Specifies the widget class pointer for the created shell widget.
... Specifies the variable argument list to override the resource defaults.
DESCRIPTION
The XtCreatePopupShell function ensures that the specified class is a subclass of Shell and, rather than using insert_child to attach the
widget to the parent's children list, attaches the shell to the parent's pop-ups list directly.
A spring-loaded pop-up invoked from a translation table already must exist at the time that the translation is invoked, so the translation
manager can find the shell by name. Pop-ups invoked in other ways can be created ``on-the-fly'' when the pop-up actually is needed. This
delayed creation of the shell is particularly useful when you pop up an unspecified number of pop-ups. You can look to see if an appropri-
ate unused shell (that is, not currently popped up) exists and create a new shell if needed.
SEE ALSO
XtCreateWidget(3Xt), XtPopdown(3Xt), XtPopup(3Xt)
X Toolkit Intrinsics - C Language Interface
Xlib - C Language X Interface
X Version 11 libXt 1.0.5 XtCreatePopupShell(3)