10-25-2017
What is your application? What language is it written in? It'd make more sense to do so in the application.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a program that i have to run by cron. The program needs user input. So i have to automate that in a littke script.
start of script program.sh:
result=program.log; export result
echo Program starting : `date` >> $result
/usr/local/program >> $result
echo Program running : `date` >>... (11 Replies)
Discussion started by: erwinspeybroeck
11 Replies
2. Shell Programming and Scripting
I am trying to use a here document to automate testing a perl script however when the perl script hits a system(perl subscript.pl) call, input is no longer entered into this subscript.
here is my script
$ cat test.sh
#ksh
for testcase
do
program <<-EOF | tee -a funcscnlog.log
y... (3 Replies)
Discussion started by: hogger84
3 Replies
3. UNIX for Advanced & Expert Users
I would like to automate script where i do not have to manually insert the username and password I wrote two different scripts but not able to achieve the results: here's to scripts i wrote
#!/bin/bash
cd /var/tmp
/home/server/steve/pca --askauth -idx
/opt/app/bin/expect <<EOF
expect... (1 Reply)
Discussion started by: sam786
1 Replies
4. Shell Programming and Scripting
I would like to automate script where i do not have to manually insert the username and password I wrote two different scripts but not able to achieve the results: here's to scripts i wrote
#!/bin/bash
cd /var/tmp
/home/server/steve/pca --askauth -idx
/opt/app/bin/expect <<EOF
expect... (3 Replies)
Discussion started by: sam786
3 Replies
5. Shell Programming and Scripting
Hi All,
./procdure.ksh which opens the below the menu, I want to build a script which will press 4 and run the Sector Data Automatically (instead of pressing option 4 manually)
Is there any way for this, please let me know...
1) FX Rates MDU 9) Fidessa Cash... (7 Replies)
Discussion started by: niceboykunal123
7 Replies
6. UNIX for Dummies Questions & Answers
Any body having idea or implemented SMS service with kannel..? Please help... (1 Reply)
Discussion started by: noufal
1 Replies
7. Shell Programming and Scripting
Hi All,
Can I automate a script when some one trying to 'vi' (open) a file.
For Example, I am having a file named 'SecuredShell.sh'.
when a user types " vi SecuredShell.sh " in unix command prompt a script named secure.sh needs to be automated.
Can this be possible. if Yes please guide... (2 Replies)
Discussion started by: little_wonder
2 Replies
8. Shell Programming and Scripting
Hi,
Here below the logs from the mail server:
less /var/log/messages:
Sep 6 04:03:31 server-59 out: 1252227811|webmaster@zilia.com|antonino.granata@gmail.com|2175|success|1
Sep 6 04:03:33 server-59 in: 1252227813|news@tarot.com|junk@thess.com|30376|success|1
Sep 6 04:03:35 server-59... (8 Replies)
Discussion started by: gsiva
8 Replies
9. AIX
Hi AIX Guru's,
I am a bit new to this AIX stuff . Does anyone of you know how to send SMS
messages from an AIX box. We are able to send emails to the internet from
this AIX box , and I was hoping sending SMS's would be something similar
Any help would be greatly appreciated .
Please... (4 Replies)
Discussion started by: smdasim
4 Replies
10. Windows & DOS: Issues & Discussions
Dear all,
I I want to login to my Linux machine using putty and then run some script from Windows machine.we can do it after loging it and then execute the script by typing it in putty command line screen. but I want to automate it.So whenever I will fire this script,it will do the following... (4 Replies)
Discussion started by: smartgupta
4 Replies
LEARN ABOUT HPUX
xtsetlanguageproc
XtSetLanguageProc() XtSetLanguageProc()
Name
XtSetLanguageProc - register the language procedure called to set the locale.
Synopsis
XtLanguageProc XtSetLanguageProc(app_context, proc, client_data)
XtAppContext app_context;
XtLanguageProc proc;
XtPointer client_data;
Inputs
app_context
Specifies the application context in which the language procedure is to be used, or NULL.
proc Specifies the language procedure.
client_data
Specifies additional data to be passed to the language procedure when it is called.
Returns
The previously registered language procedure.
Availability
Release 5 and later.
Description
XtSetLanguageProc() registers proc as the language procedure that will be called (with client_data) from XtDisplayInitialize() for all sub-
sequent displays initialized in the application context app_context. The language procedure is called by XtDisplayInitialize() (in Release
5) in order to determine the language string and perform whatever localization is required by an internationalized application.
If app_context is NULL, the specified language procedure is registered in all application contexts created by the calling process, includ-
ing any future application contexts that may be created. If proc is NULL a default language procedure is registered.
XtSetLanguageProc() returns the previously registered language procedure. If a language procedure has not yet been registered, the return
value is unspecified but if it is used in a subsequent call to XtSetLanguageProc(), it will cause the default language procedure to be reg-
istered.
Note that the "default" language procedure is not registered by default; you must call XtSetLanguageProc() with a proc of NULL to register
this default procedure. If XtSetLanguageProc() is never called, XtDisplayInitialize() determines the language string by the same procedure
it used prior to Release 5. See XtDisplayInitialize() for more information.
See the "Background" section below for a description of the default language procedure. See XtLanguageProc(2) for an explanation of how to
write a language procedure.
Usage
Most internationalized applications should call XtSetLanguageProc() directly before calling XtAppInitialize(). The default language proce-
dure should be adequate for applications that use only the internationalization facilities provided by ANSI-C and Xlib.
Example
A client wishing to use this default procedure to establish locale can do so as in following example:
Widget top;
XtSetLanguageProc(NULL, NULL, NULL);
top = XtAppInitialize( ... );
Background
The default language procedure does the following:
o Sets the locale according to the environment. On ANSI C-based systems this is done by calling setlocale(LC_ALL, language). If an error
is encountered a warning message is issued with XtWarning(), where language is the language string determined by XtDisplayInitialize()
and passed to the default language procedure.
o Calls XSupportsLocale() to verify that the current locale is supported. If the locale is not supported, a warning message is issued
with XtWarning() and the locale is set to "C."
o Calls XSetLocaleModifiers() specifying the empty string.
o Returns the value of the current locale. On ANSI-C-based systems this is the return value from a final call to setlocale(LC_ALL, NULL).
See Also
XtDisplayInitialize(1),
XtLanguageProc(2).
Xt - Locale Management XtSetLanguageProc()