11-06-2013
If you solved the problem, it would be nice NOT to ask to close the thread but to explain what was the issue and the remedy applied...
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I wrote a script using 'expect' tool to change the password of my login id, every fortnight. And I had put it as a cron job.
The cron job is throwing an error
ld.so.1: /usr/local/bin/expect: fatal: libtcl8.3.so: open failed: No such file or directory
The environment variables are set... (4 Replies)
Discussion started by: Deepa
4 Replies
2. UNIX for Dummies Questions & Answers
Hello,
i am using expect to automate file transfers to and fro with a sftp server.
below is the script i am creating and executing in the main program.
but i am getting the following error:
the main program that creates and runs this script looks for words like "not found" in... (6 Replies)
Discussion started by: The Nemi
6 Replies
3. Shell Programming and Scripting
I'm calling an expect script via a ksh script in cron and it is failing. The script runs fine if i run it manually. Does anyone know if it is an issue with compatibilty and if there is a way around it? (2 Replies)
Discussion started by: bhatia
2 Replies
4. Shell Programming and Scripting
I'm new to expecting and i want to create a script to ssh to a device,check is a process is running and display that the process is running or not.This is what i have so far
After executing this script i get an error.
#!/usr/bin/expect
set timeout -1
set ip "machine ip goes here"
set... (5 Replies)
Discussion started by: icchi
5 Replies
5. Shell Programming and Scripting
My searches turned up nothing relevant, so I apologize if this has already been looked at.
I am trying to run an expect script from a Solaris machine, that ssh's into an AIX machine, and interacts with a SMIT created menu system that runs a few backups for me.
The expect script runs fine when... (0 Replies)
Discussion started by: Mariognarly
0 Replies
6. Shell Programming and Scripting
Hello everyone,
I have a small expect script as follows;
#!/usr/bin/expect -f
set force_conservative 0 ;# set to 1 to force conservative mode even if
;# script wasn't run conservatively originally
if {$force_conservative} {
set send_slow {1 .1}
proc send {ignore arg}... (1 Reply)
Discussion started by: randeel
1 Replies
7. Shell Programming and Scripting
I have an Ubuntu machine that I'd like to update automatically. I've written an expect script to run the aptitude package manager and update my packages. Essentially it does:
aptitude update && aptitude upgrade while answering "yes" at the appropriate time.
It works quite nicely when run... (4 Replies)
Discussion started by: CluelessPerson
4 Replies
8. Shell Programming and Scripting
Hi, I have a script running while rsync command is fired to push some files. The output of rsync cmd has been redirected to the script which is used to generate log files containing progress info with formatting. when I enter ps -ef | grep rsync it shows the full scripting code on the cmd line... (2 Replies)
Discussion started by: rajeevra
2 Replies
9. Shell Programming and Scripting
I wrote a script to download the files from sftp location to local. while running the script manually its working fine. when i schedule the same in cron its not working.... :wall::wall:
here is the script:
#!/bin/bash
... (2 Replies)
Discussion started by: ganga39
2 Replies
10. Shell Programming and Scripting
Hello All,
I'm having an issue getting an expect script to run as a cron job. The script executes fin if I run it from the command line but I get nothing when trying to run it as a cron job. I've researched other forums and threads and there have been references to the environment, or lack... (16 Replies)
Discussion started by: KingT617
16 Replies
LEARN ABOUT ULTRIX
nl_langinfo
nl_langinfo(3int) nl_langinfo(3int)
Name
nl_langinfo - language information
Syntax
#include <nl_types.h>
#include <langinfo.h>
char *nl_langinfo (item)
nl_item item;
Description
The function returns a pointer to a null-terminated string containing information relevant to a particular language or cultural area. The
language is identified by the last successful call to the appropriate category. The categories are shown in the following table and are
defined in
For instance, the following example would return a pointer to the string representing the abbreviated name for the first day of the week,
as defined by category
nl_langinfo (ABDAY_1);
If the category has not been called successfully, data for a supported language is not available, or is not defined, then returns a pointer
to an empty (null) string. In the C locale, the return value is the American English string defined in the following table:
-----------------------------------------------------------------------
Identifier Meaning C locale Category
-----------------------------------------------------------------------
NOSTR Negative response no LC_ALL
YESSTR Positive response yes LC_ALL
D_T_FMT Default date and time format %a %b %d
%H:%M:%S %Y LC_TIME
D_FMT Default date format %m/%d/%y LC_TIME
T_FMT Default time format %h:%m:%s LC_TIME
DAY_1 Day name Sunday LC_TIME
DAY_2 Day name Monday LC_TIME
.... .... .... ....
DAY_7 Day name Saturday LC_TIME
ABDAY_1 Abbreviated day name Sun LC_TIME
ABDAY_2 Abbreviated day name Mon LC_TIME
ABDAY_3 Abbreviated day name Tue LC_TIME
.... .... .... ....
ABDAY_7 Abbreviated day name Sat LC_TIME
MON_1 Month name January LC_TIME
MON_2 Month name February LC_TIME
MON_3 Month name March LC_TIME
.... .... .... ....
MON_12 Month name December LC_TIME
ABMON_1 Abbreviated month name Jan LC_TIME
ABMON_2 Abbreviated month name Feb LC_TIME
.... .... .... ....
ABMON_12 Abbreviated month name Dec LC_TIME
RADIXCHAR Radix character . LC_NUMERIC
THOUSEP Thousands separator LC_NUMERIC
CRNCYSTR Currency format LC_MONETARY
AM_STR String for AM AM LC_TIME
PM_STR String for PM PM LC_TIME
EXPL_STR Lower case exponent character e LC_NUMERIC
EXPU_STR Upper case exponent character E LC_NUMERIC
-----------------------------------------------------------------------
See Also
intro(3int), ic(1int), setlocale(3int), environ(5int), nl_types(5int)
Guide to Developing International Software
nl_langinfo(3int)