05-23-2002
Converting an OpenVms .com to a UNIX ksh script
Does anyone know what a unix equivalent to the following OpenVms string would be?
variable1 = F$FAO("!123AS",file_create_time)
I can't seem to find the proper syntax of anything I try.
Thx!
J
9 More Discussions You Might Find Interesting
1. Programming
We are in requirement to port relative file organization files from OpenVMS V7.1-1H2 to AIX Unix. These file contains multiple binary records each of 512 bytes but it could be possible that a few bytes are padded up to fill the record structure.
One of our thought process is to write a program... (1 Reply)
Discussion started by: S.P.Prasad
1 Replies
2. Shell Programming and Scripting
Could anybody please help me in writing a script in unix for converting a decimal number to binary number. (3 Replies)
Discussion started by: softy
3 Replies
3. Windows & DOS: Issues & Discussions
hi evry one , I did some ksh scripts for file editing in AIX 5.2 ver,
issue is while I was trying to run these scripts in windows box as batch files windows is not recognising the awk part of the ksh script,as it is GNU environment, so any one who can help me will be appreciated.
this is the... (3 Replies)
Discussion started by: 2.5lt V8
3 Replies
4. Shell Programming and Scripting
Hello All,
I have a whole bunch of shell scripts written in a ksh environment and which successfully execute there. However, I found out that they eventually need to be used in a sh environment. So some commands like some_variable=$(some_command) fail because sh doesn't understand $(.....). I... (11 Replies)
Discussion started by: sherkaner
11 Replies
5. Shell Programming and Scripting
I am writing a unix shell script that will extract records from table and write into a file.
======================================
#! /bin/ksh
############################
# AFI Monitor Script
############################
. /db2/uszlad48/sqllib/db2profile
export... (5 Replies)
Discussion started by: kmanivan82
5 Replies
6. Shell Programming and Scripting
Hi
Can someone help me please?
In a standard UNIX .ksh script, if you have the exit status..say 5...what line do you have to enter into the script for this number to be automatically converted to its actual exit reason by looking up the exit status file...wherever that is?
thanks
angus (1 Reply)
Discussion started by: angusyoung
1 Replies
7. Shell Programming and Scripting
:confused:Please I really need help with an assignment question. I need to write a script that will take the input from a file and convert the number from Centigrade(Celcius) to Fahrenheit or vice versa. Thank you so much. I really need it to be detailed. Please remember the input comes from a file. (1 Reply)
Discussion started by: starter101
1 Replies
8. Shell Programming and Scripting
Hi all,
Am trying to convert a script written in ksh to a bash shell.
At the moment, am stumped with the typeset -u command and I can't find an equivalent of it in bash.
integer function is also not working as is the following if statement
if ] && ]; then
continue
fi
Is... (3 Replies)
Discussion started by: newbie_01
3 Replies
9. UNIX for Advanced & Expert Users
Hi All,
Am needing advise on how to convert xls file to xlsx format on Solaris unix command line or scripting. I tried searching online but it looks like I need to either use Perl packages of Excel or Python packages or some other 3rd party tool. Problem is to install any of these will require... (2 Replies)
Discussion started by: arvindshukla81
2 Replies
LEARN ABOUT OSF1
dxmdisplaycsmessage
DXmDisplayCSMessage(3X) DXmDisplayCSMessage(3X)
NAME
DXmDisplayCSMessage - Displays a compound string message.
SYNOPSIS
Widget DXmDisplayCSMessage(
Widget parent_widget,
char *name,
Boolean default_position,
Position x,
Position y,
unsigned char style,
int *message_vector,
Widget *widget,
int *convert_proc,
XtCallbackList ok_callback,
XtCallbackList help_callback );
PARAMETERS
The identifier (widget ID) for the parent widget of the created widget. The name of the created widget. When True, the x and y positions
of the widget window are ignored in favor of the default, which centers the message box in the window of the parent widget. The placement,
in pixels, of the left side of the message box relative to the inner upper-left corner of the parent window. The placement, in pixels, of
the upper side of the message box relative to the inner upper-left corner of the parent window. The style of the dialog box widget used
for the message box. The predefined values for this resource are as follows:
-----------------------------------------------------------
Value Description
-----------------------------------------------------------
XmDIALOG_FULL_APPLICATION_MODAL Used for dialogs that
must be responded to
before other interac-
tions in the same
application
XmDIALOG_MODELESS Modeless type dialog
box
XmDIALOG_PRIMARY_APPLICATION_MODAL Used when dialogs
must be responded to
before other interac-
tions in ancestors of
the widget
XmDIALOG_SYSTEM_MODAL Modal type dialog box
-----------------------------------------------------------
The default is XmDIALOG_MODELESS. The message argument vector specifying the compound strings and associated information.
The first longword contains the number of longwords in the message blocks to follow. The first longword in each message block con-
tains a pointer to the compound string. The next word consists of the formatted ASCII output (FAO) parameter count. The remaining
longwords in the message block are the FAO parameters.
In addition to the standard FAO system service flags, the compound string message routine will accept the new FAO directive "!CS".
When used, this directive will insert a compound string itself. The identifier (widget ID) of an already existing message box wid-
get. The Intrinsic routine XtSetValues is called on this widget to change the text of the message to match the new message. (Note,
however, that this call to XtSetValues does not set default_position, x, y, or style for the existing message box widget.) If this
parameter is 0, a new message box widget is created. A pointer to a routine that is executed after the message is formatted but
before it is displayed. A pointer to the formatted string is passed to the routine as a parameter.
The parameter is a null-terminated character string. A callback descriptor data structure. The callback is executed when the user
clicks on the Acknowledged button. The reason is XmCR_OK. A callback descriptor data structure. The callback is executed when the
user requests help. The reason returned is XmCR_HELP.
DESCRIPTION
The DXmDisplayCSMessage routine accepts an array of compound strings, formats them, and, if necessary, creates a message box. A return of
0 (Null) indicates that the message box could not be created.
RETURN VALUES
The identifier (widget ID) of the message box widget.
DXmDisplayCSMessage(3X)