There is no need for the rewrite of the catches all the time, could be simplified to:
This is acutaly just (about) the same as:
Saying, if your only condition is to exit/return if any command fails, it could be simplified/short.
hth
Replacing
with:
compresses all of the possible error exit status information to a single value (1). The equivalent replacement (if you just care about the exit code) would be:
If the code calling the function is depending on RC being set; it could be shortened to:
(assuming that you're using a shell that supports POSIX arithmetic substitutions.
I recently upgraded a system from php 4.4.2 to php 5.2.1, and one of my scripts has started behaving very strangely. I've tried google but come up blank so far.
Basically what the script does is select a large amount of data from a mysql (4.1.21) database, do some manipulation, the plots a graph... (4 Replies)
there are many script in my project.i am having a problem when i am trying to quit from child script.what is the command to wrap up all the parent script and calling script as well? exit 0 is not working.please help.... (1 Reply)
Hi Folks.
My script is not exiting after run though its working correctly please suggest.
#!/bin/ksh
trap '' HUP
. /bin/functions
config_env
PATH=/bin:/usr/bin:/usr/local/bin:$EXEC_PATH:$ORACLE_HOME/bin
MONTH=$(control_register month)
YEAR=$(control_register year)
DATE_NOW="Job... (1 Reply)
I have a script which has the following statement,
/opt/oracle/product/9i/bin/sqlplus << EOC >> $LOG_FILE 2>&1
username/password ---- Enters the SQL prompt
@/export/home/oracle/shells/grant_userview.sql ---Runs the SQL script
@/export/home/oracle/shells/grant_proc_userview.sql ---Runs the... (6 Replies)
Hi,
I am trying to exit the script from a function.
I was in assumption that if we use exit ( inside or outside the function) it will exit from the script.
alternatively, return will exit from that particular function.
but in my case, exit is exiting from the function and not the script.... (8 Replies)
I have a script planned for the Helpdesk to allow them to (on a couple of RHEL 3 / RHEL 5 servers) reset passwords, stop / start printers, and clear print queues. The appropriate sudo permissions were given to their accounts, and the individual functions all work just fine. The ability to move... (0 Replies)
Hi,
I am trying to update a script so that it checks the current time, if the current time is 12am then I want the script to end and go no further. I have used the exit command but it doesn't seem to work. The section of script below is within another loop. I want the script to not just... (3 Replies)
I have to write a script in ksh which again should call another script. Say A.ksh is calling B.ksh. Now in B.ksh if the condition we are checking for is true then we have to go back to the main script A.ksh or if the condition in B.ksh is false then we have to totally come out of the scripts.
I... (1 Reply)
Hi Team,
Need your help for the below code snippet. I wrote a module to read the file names remote server using file name convention.
Issue : My script is coming out from while loop without reading complete file.
test1()
{
while read line
do
echo $line
file_nm_convention=`echo... (3 Replies)
Discussion started by: gvkumar25
3 Replies
LEARN ABOUT HPUX
xmscrollvisible
XmScrollVisible(library call) XmScrollVisible(library call)
NAME
XmScrollVisible -- A ScrolledWindow function that makes an invisible
descendant of a ScrolledWindow work area visible
SYNOPSIS
#include <Xm/ScrolledW.h>
void XmScrollVisible(
Widget scrollw_widget,
Widget widget,
Dimension left_right_margin,
Dimension top_bottom_margin);
DESCRIPTION
XmScrollVisible makes an obscured or partially obscured widget or gadget descendant of a ScrolledWindow work area visible. The function re-
positions the work area and sets the specified margins between the widget and the nearest viewport boundary. The widget's location relative
to the viewport determines whether one or both of the margins must be adjusted. This function requires that the XmNscrollingPolicy of the
ScrolledWindow widget be set to XmAUTOMATIC.
scrollw_widget
Specifies the ID of the ScrolledWindow widget whose work area window contains an obscured descendant.
widget Specifies the ID of the widget to be made visible.
left_right_margin
Specifies the margin to establish between the left or right edge of the widget and the associated edge of the viewport. This
margin is established only if the widget must be moved horizontally to make it visible.
top_bottom_margin
Specifies the margin to establish between the top or bottom edge of the widget and the associated edge of the viewport. This
margin is established only if the widget must be moved vertically to make it visible.
For a complete definition of ScrolledWindow and its associated resources, see XmScrolledWindow(3)RELATED XmScrolledWindow(3).
XmScrollVisible(library call)