Sponsored Content
Top Forums Shell Programming and Scripting Function Problem and CoreDump Post 302168812 by jim mcnamara on Tuesday 19th of February 2008 01:53:44 PM
Old 02-19-2008
Got it - ksh93 is an "add-on" not part of the HPUX standard distribution, AFAIK. For our HPUX boxes we get support only on sh and ksh. YMMV.

I believe you have a shell problem. The examples I gave you and the examples you gave me that failed are POSIX compliant and should work in a POSIX shell. I don't know how you'd get support from HP -- which is where I would start in another circumstance.

If you cannot get support, try /usr/bin/ksh Your examples should never coredump.
 

10 More Discussions You Might Find Interesting

1. Programming

rexec() function problem

Hi folks, I'm trying to make a reconnection algorithm using rexec(), but I noticed that when rexec() fails returning -1, it is impossible to make it run successfully again until you restart the program or the thread. Example, I have a endless loop for connection retries, if I supply a wrong... (7 Replies)
Discussion started by: lcmoreno
7 Replies

2. Shell Programming and Scripting

PERL function problem

I have perl script as follow. ------------------------------------------------------------------------ #! /usr/bin/env perl use strict; sub printLines { print "Inside the function.............\n"; my (@file , $count , $key ) = $_; print $count , $ key ; #... (2 Replies)
Discussion started by: avadhani
2 Replies

3. Shell Programming and Scripting

Problem with Recursive function

Hi all, I have to move all the files in a tree directory structure to a single directory. Inorder to know which file is from which directory , i'll have to add the name of the directory to the file name. For this i wrote a recursive function which is as follows... (4 Replies)
Discussion started by: malle
4 Replies

4. Shell Programming and Scripting

Problem with function script.

Need an extra set of eyes. Can't find function. Can someone help, please. Thanks echo " Is this the correct list of tapes to eject (y/n)?" read option echo $option case $option in y|Y) TAPE_ROUTINE;; ... (3 Replies)
Discussion started by: gzs553
3 Replies

5. Shell Programming and Scripting

problem, with if condition in function

Hi All, I have a function which reads parameter and gets the value from config file. The entry in the file can be either of two Name=value or Name=value so if the variant is not present it should return me the generic value ie Name without variant. I am first searching for variant in... (4 Replies)
Discussion started by: gurukottur
4 Replies

6. Shell Programming and Scripting

splice function problem

Hi All, I am using splice function in for loop to delete particular element from array with one condition. my $cnt=0; foreach my $elem (@result) { if (condition){ splice(@result, $cnt, 1);} else{ $cnt++;} } Now when in array, two elements comes sequentially with the... (3 Replies)
Discussion started by: gentleDean
3 Replies

7. Shell Programming and Scripting

Calling Function Problem

Hi, I had a scripts which calls two function. One function will call another function, script is working fine but the second function is not calling the first function. Below is the script #!/usr/bin/ksh fun1() { echo $DATETIME >> Test1.ksh return 0 } fun2() { typeset DATETIME=`date... (5 Replies)
Discussion started by: somu_june
5 Replies

8. Shell Programming and Scripting

Function problem

hey guys, im trying to learn bourne shell atm and I'm having some issues with functions. so heres my code: #!/bin/bash ##functions memory () { free -m } space () { df -h } ip () { (5 Replies)
Discussion started by: hawkfro12
5 Replies

9. Shell Programming and Scripting

Coredump when passing file name to ksh function

Hi, I'm playing with ksh. I'm trying to do a simple task: read file name from cli and call a function which calculated number of lines in file. I'm getting coredump every time when I try to read that file. Korn shell version $ print ${.sh.version} Version AJM 93u+ 2012-08-01 Main... (5 Replies)
Discussion started by: solaris_user
5 Replies

10. Shell Programming and Scripting

Problem with (Understanding) function

I have this code #!/bin/bash LZ () { RETVAL="\n$(date +%Y-%m-%d_%H-%M-%S) --- " return RETVAL } echo -e $LZ"Test" sleep 3 echo -e $LZ"Test" which I want to use to make logentrys on my NAS. I expect of this code that there would be output like 2017-03-07_11-00-00 --- Test (4 Replies)
Discussion started by: matrois
4 Replies
DateTime::Locale::kn(3) 				User Contributed Perl Documentation				   DateTime::Locale::kn(3)

NAME
DateTime::Locale::kn SYNOPSIS
use DateTime; my $dt = DateTime->now( locale => 'kn' ); print $dt->month_name(); DESCRIPTION
This is the DateTime locale package for Kannada. DATA
This locale inherits from the DateTime::Locale::root locale. It contains the following data. Days Wide (format) XXXXXX XXXXXXX XXXXXX XXXXXXX XXXXXXXX XXXXXX XXXXXX Abbreviated (format) XX. XX. XX. XX. XX. XXX. X. Narrow (format) XX XX XX XX XX X X Wide (stand-alone) XXXXXX XXXXXXX XXXXXX XXXXXXX XXXXXXXX XXXXXX XXXXXX Abbreviated (stand-alone) XX. XX. XX. XX. XX. XXX. X. Narrow (stand-alone) XX XX XX XX XX X X Months Wide (format) XXXXX XXXXXXXX XXXXXX XXXXXXX XX XXXX XXXX XXXXXX XXXXXXXXX XXXXXXXX XXXXXXX XXXXXXXX Abbreviated (format) XXXXX XXXXXXXX XXXXXX XXXXXXX XX XXXX XXXX XXXXXX XXXXXXXXX XXXXXXXX XXXXXXX XXXXXXXX Narrow (format) X XX XX X XX XX XX X XX X X XX Wide (stand-alone) XXXXX XXXXXXXX XXXXXX XXXXXXX XX XXXX XXXX XXXXXX XXXXXXXXX XXXXXXXX XXXXXXX XXXXXXXX Abbreviated (stand-alone) XXXXX XXXXXXXX XXXXXX XXXXXXX XX XXXX XXXX XXXXXX XXXXXXXXX XXXXXXXX XXXXXXX XXXXXXXX Narrow (stand-alone) X XX XX X XX XX XX X XX X X XX Quarters Wide (format) XXXX 1 XXXX 2 XXXX 3 XXXXX 4 Abbreviated (format) Q1 Q2 Q3 Q4 Narrow (format) 1 2 3 4 Wide (stand-alone) XXXX 1 XXXX 2 XXXX 3 XXXXX 4 Abbreviated (stand-alone) Q1 Q2 Q3 Q4 Narrow (stand-alone) 1 2 3 4 Eras Wide XXXXXX. XXXXXXX XX Abbreviated BCE CE Narrow BCE CE Date Formats Full 2008-02-05T18:30:30 = XXXXXXX 5 XXXXXXXX 2008 1995-12-22T09:05:02 = XXXXXXXX 22 XXXXXXXX 1995 -0010-09-15T04:44:23 = XXXXXX 15 XXXXXXXXX -10 Long 2008-02-05T18:30:30 = 5 XXXXXXXX 2008 1995-12-22T09:05:02 = 22 XXXXXXXX 1995 -0010-09-15T04:44:23 = 15 XXXXXXXXX -10 Medium 2008-02-05T18:30:30 = 5 XXXXXXXX 2008 1995-12-22T09:05:02 = 22 XXXXXXXX 1995 -0010-09-15T04:44:23 = 15 XXXXXXXXX -10 Short 2008-02-05T18:30:30 = 5-2-08 1995-12-22T09:05:02 = 22-12-95 -0010-09-15T04:44:23 = 15-9--10 Default 2008-02-05T18:30:30 = 5 XXXXXXXX 2008 1995-12-22T09:05:02 = 22 XXXXXXXX 1995 -0010-09-15T04:44:23 = 15 XXXXXXXXX -10 Time Formats Full 2008-02-05T18:30:30 = 06:30:30 pm UTC 1995-12-22T09:05:02 = 09:05:02 am UTC -0010-09-15T04:44:23 = 04:44:23 am UTC Long 2008-02-05T18:30:30 = 06:30:30 pm UTC 1995-12-22T09:05:02 = 09:05:02 am UTC -0010-09-15T04:44:23 = 04:44:23 am UTC Medium 2008-02-05T18:30:30 = 06:30:30 pm 1995-12-22T09:05:02 = 09:05:02 am -0010-09-15T04:44:23 = 04:44:23 am Short 2008-02-05T18:30:30 = 06:30 pm 1995-12-22T09:05:02 = 09:05 am -0010-09-15T04:44:23 = 04:44 am Default 2008-02-05T18:30:30 = 06:30:30 pm 1995-12-22T09:05:02 = 09:05:02 am -0010-09-15T04:44:23 = 04:44:23 am Datetime Formats Full 2008-02-05T18:30:30 = XXXXXXX 5 XXXXXXXX 2008 06:30:30 pm UTC 1995-12-22T09:05:02 = XXXXXXXX 22 XXXXXXXX 1995 09:05:02 am UTC -0010-09-15T04:44:23 = XXXXXX 15 XXXXXXXXX -10 04:44:23 am UTC Long 2008-02-05T18:30:30 = 5 XXXXXXXX 2008 06:30:30 pm UTC 1995-12-22T09:05:02 = 22 XXXXXXXX 1995 09:05:02 am UTC -0010-09-15T04:44:23 = 15 XXXXXXXXX -10 04:44:23 am UTC Medium 2008-02-05T18:30:30 = 5 XXXXXXXX 2008 06:30:30 pm 1995-12-22T09:05:02 = 22 XXXXXXXX 1995 09:05:02 am -0010-09-15T04:44:23 = 15 XXXXXXXXX -10 04:44:23 am Short 2008-02-05T18:30:30 = 5-2-08 06:30 pm 1995-12-22T09:05:02 = 22-12-95 09:05 am -0010-09-15T04:44:23 = 15-9--10 04:44 am Default 2008-02-05T18:30:30 = 5 XXXXXXXX 2008 06:30:30 pm 1995-12-22T09:05:02 = 22 XXXXXXXX 1995 09:05:02 am -0010-09-15T04:44:23 = 15 XXXXXXXXX -10 04:44:23 am Available Formats d (d) 2008-02-05T18:30:30 = 5 1995-12-22T09:05:02 = 22 -0010-09-15T04:44:23 = 15 EEEd (d EEE) 2008-02-05T18:30:30 = 5 XX. 1995-12-22T09:05:02 = 22 XX. -0010-09-15T04:44:23 = 15 XXX. Hm (H:mm) 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 9:05 -0010-09-15T04:44:23 = 4:44 hm (h:mm a) 2008-02-05T18:30:30 = 6:30 pm 1995-12-22T09:05:02 = 9:05 am -0010-09-15T04:44:23 = 4:44 am Hms (H:mm:ss) 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 9:05:02 -0010-09-15T04:44:23 = 4:44:23 hms (h:mm:ss a) 2008-02-05T18:30:30 = 6:30:30 pm 1995-12-22T09:05:02 = 9:05:02 am -0010-09-15T04:44:23 = 4:44:23 am M (L) 2008-02-05T18:30:30 = 2 1995-12-22T09:05:02 = 12 -0010-09-15T04:44:23 = 9 Md (M-d) 2008-02-05T18:30:30 = 2-5 1995-12-22T09:05:02 = 12-22 -0010-09-15T04:44:23 = 9-15 MEd (E, M-d) 2008-02-05T18:30:30 = XX., 2-5 1995-12-22T09:05:02 = XX., 12-22 -0010-09-15T04:44:23 = XXX., 9-15 MMdd (dd-MM) 2008-02-05T18:30:30 = 05-02 1995-12-22T09:05:02 = 22-12 -0010-09-15T04:44:23 = 15-09 MMM (LLL) 2008-02-05T18:30:30 = XXXXXXXX 1995-12-22T09:05:02 = XXXXXXXX -0010-09-15T04:44:23 = XXXXXXXXX MMMd (MMM d) 2008-02-05T18:30:30 = XXXXXXXX 5 1995-12-22T09:05:02 = XXXXXXXX 22 -0010-09-15T04:44:23 = XXXXXXXXX 15 MMMEd (E MMM d) 2008-02-05T18:30:30 = XX. XXXXXXXX 5 1995-12-22T09:05:02 = XX. XXXXXXXX 22 -0010-09-15T04:44:23 = XXX. XXXXXXXXX 15 MMMMd (d MMMM) 2008-02-05T18:30:30 = 5 XXXXXXXX 1995-12-22T09:05:02 = 22 XXXXXXXX -0010-09-15T04:44:23 = 15 XXXXXXXXX MMMMEd (E MMMM d) 2008-02-05T18:30:30 = XX. XXXXXXXX 5 1995-12-22T09:05:02 = XX. XXXXXXXX 22 -0010-09-15T04:44:23 = XXX. XXXXXXXXX 15 ms (mm:ss) 2008-02-05T18:30:30 = 30:30 1995-12-22T09:05:02 = 05:02 -0010-09-15T04:44:23 = 44:23 y (y) 2008-02-05T18:30:30 = 2008 1995-12-22T09:05:02 = 1995 -0010-09-15T04:44:23 = -10 yM (y-M) 2008-02-05T18:30:30 = 2008-2 1995-12-22T09:05:02 = 1995-12 -0010-09-15T04:44:23 = -10-9 yMEd (EEE, y-M-d) 2008-02-05T18:30:30 = XX., 2008-2-5 1995-12-22T09:05:02 = XX., 1995-12-22 -0010-09-15T04:44:23 = XXX., -10-9-15 yMMM (y MMM) 2008-02-05T18:30:30 = 2008 XXXXXXXX 1995-12-22T09:05:02 = 1995 XXXXXXXX -0010-09-15T04:44:23 = -10 XXXXXXXXX yMMMEd (EEE, y MMM d) 2008-02-05T18:30:30 = XX., 2008 XXXXXXXX 5 1995-12-22T09:05:02 = XX., 1995 XXXXXXXX 22 -0010-09-15T04:44:23 = XXX., -10 XXXXXXXXX 15 yMMMM (y MMMM) 2008-02-05T18:30:30 = 2008 XXXXXXXX 1995-12-22T09:05:02 = 1995 XXXXXXXX -0010-09-15T04:44:23 = -10 XXXXXXXXX yQ (y Q) 2008-02-05T18:30:30 = 2008 1 1995-12-22T09:05:02 = 1995 4 -0010-09-15T04:44:23 = -10 3 yQQQ (y QQQ) 2008-02-05T18:30:30 = 2008 Q1 1995-12-22T09:05:02 = 1995 Q4 -0010-09-15T04:44:23 = -10 Q3 yyQ (Q yy) 2008-02-05T18:30:30 = 1 08 1995-12-22T09:05:02 = 4 95 -0010-09-15T04:44:23 = 3 -10 yyyyMM (MM-yyyy) 2008-02-05T18:30:30 = 02-2008 1995-12-22T09:05:02 = 12-1995 -0010-09-15T04:44:23 = 09--010 yyyyMMMM (MMMM y) 2008-02-05T18:30:30 = XXXXXXXX 2008 1995-12-22T09:05:02 = XXXXXXXX 1995 -0010-09-15T04:44:23 = XXXXXXXXX -10 Miscellaneous Prefers 24 hour time? No Local first day of the week XXXXXX SUPPORT
See DateTime::Locale. AUTHOR
Dave Rolsky <autarch@urth.org> COPYRIGHT
Copyright (c) 2008 David Rolsky. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. This module was generated from data provided by the CLDR project, see the LICENSE.cldr in this distribution for details on the CLDR data's license. perl v5.16.2 2013-08-25 DateTime::Locale::kn(3)
All times are GMT -4. The time now is 01:02 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy