Sponsored Content
Full Discussion: Error Trapping
Top Forums Shell Programming and Scripting Error Trapping Post 72760 by kev112 on Tuesday 24th of May 2005 05:46:10 AM
Old 05-24-2005
Error Trapping

Hi,

Can anybody tell me how to error trap an empty line. If i am asked for a password and I hit enter without entering any text, how do i display an error?

Thanks
Kev
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

sql error code trapping

Hello #!bin/ksh sqlplus -s system/manager < |grep '^ORA' |uniq select * from kk; set echo on show spool on end; / EOF save test.sh sh test.sh results ORA-00942: table or view does not exist (3 Replies)
Discussion started by: xiamin
3 Replies

2. UNIX for Dummies Questions & Answers

ftp error trapping

Hi I'm hoping I could get some help on the following. I'm writing a script which will in turn create an ftp script then excecute it. eg echo "user $user $pass" > $script echo "cd $remote_dir" >> $script echo "bi" >> $script echo "mput $file" >> $script echo "bye" >> $script ftp -n -i $ip... (1 Reply)
Discussion started by: Bab00shka
1 Replies

3. UNIX for Dummies Questions & Answers

ftp error trapping

I have written a UNIX script that will automatically ftp a file to a server. The problem is when I missed enter information w/in the .txt file that contains the userid/password and what file to transfer, I had no way of capturing the failuer of the file transfer. I verified w/in the script that the... (1 Reply)
Discussion started by: dhawkjrscripter
1 Replies

4. Shell Programming and Scripting

rcp error trapping in rsh

I am writing a program which is something like below: rsh host1 "rcp file dest:directory" I am running this script from a machine host2. host1 has rlogin configuration for host2. but, dest machine has no rlogin configuration for host1 and fails on remote calls. Could anyone tell me how... (2 Replies)
Discussion started by: vvejendla
2 Replies

5. Shell Programming and Scripting

Error trapping in parent/child scripts

Greets all. I'm using Slackware 12.0 with the bash shell. Calling my scripts with /bin/sh... I'm building gnome-2.18.3 and I have all my build scripts ready and working but I'm calling them from a parent script which executes each child/build script in a certain order (for loop). I have "set... (6 Replies)
Discussion started by: madpenguin
6 Replies

6. Shell Programming and Scripting

Searching and FTP error trapping

This is gonna sound dumb but... 1 It seems that I cannot use the search function here properly. In researching to find a solution to an FTP error trapping issue, I go to the search option in the forum and use FTP as a search term and ask it to select all forums to search in..... I get no... (2 Replies)
Discussion started by: Bartman
2 Replies

7. Shell Programming and Scripting

trapping error for a grep in for a loop

How can I trap and print "cannot find the pattern" when the grep is unable to find the specified pattern in the file using the for loop below ? Any help would be appreciated. bash3.4> cat test_file apple orange pineapple blackberry script: for x in `grep -n "mango" test_file... (4 Replies)
Discussion started by: jville
4 Replies

8. Shell Programming and Scripting

curl error trapping in ksh

I hope that I can trap curl errors, and have my shell script error out and quit if curl has any sort of problem. For example, I have the following command in my shell script: curl --trace -n -v --ftp-ssl ftp://xxx.xxx.xxx.xxx:2122 --user user:password -o /tmp/file.txt Works great, except... (2 Replies)
Discussion started by: prestonatwork
2 Replies

9. Shell Programming and Scripting

Error Trapping

Hi, I have one shell script as below while read SegList do if test -s ${SourceFile_Path}/${Segment_List_Temp} then ls -r -1 ${FTP_Path}/${SegList}.DAT.${Datelist}.GZ|cut -d '.' -f2>>${SourceFile_Path}/${List_Temp} echo "IF above statment Fail I want to Create Emtpy File How to Trapp... (3 Replies)
Discussion started by: samadhanpatil
3 Replies

10. Shell Programming and Scripting

Trapping the error during copy

I have a requirement: During copy command for example: cp -rf <sourceDir> <destinationDir> this command may fails for many reasons like: 1. source or destination directory does not exist 2. destination directory does not have sufficient space 3. directories are not mounted ... Or may... (3 Replies)
Discussion started by: ambarginni
3 Replies
DateTime::Locale::kw(3) 				User Contributed Perl Documentation				   DateTime::Locale::kw(3)

NAME
DateTime::Locale::kw SYNOPSIS
use DateTime; my $dt = DateTime->now( locale => 'kw' ); print $dt->month_name(); DESCRIPTION
This is the DateTime locale package for Cornish. DATA
This locale inherits from the DateTime::Locale::root locale. It contains the following data. Days Wide (format) De Lun De Merth De Merher De Yow De Gwener De Sadorn De Sul Abbreviated (format) Lun Mth Mhr Yow Gwe Sad Sul Narrow (format) 2 3 4 5 6 7 1 Wide (stand-alone) De Lun De Merth De Merher De Yow De Gwener De Sadorn De Sul Abbreviated (stand-alone) Lun Mth Mhr Yow Gwe Sad Sul Narrow (stand-alone) 2 3 4 5 6 7 1 Months Wide (format) Mys Genver Mys Whevrel Mys Merth Mys Ebrel Mys Me Mys Efan Mys Gortheren Mye Est Mys Gwyngala Mys Hedra Mys Du Mys Kevardhu Abbreviated (format) Gen Whe Mer Ebr Me Efn Gor Est Gwn Hed Du Kev Narrow (format) 1 2 3 4 5 6 7 8 9 10 11 12 Wide (stand-alone) Mys Genver Mys Whevrel Mys Merth Mys Ebrel Mys Me Mys Efan Mys Gortheren Mye Est Mys Gwyngala Mys Hedra Mys Du Mys Kevardhu Abbreviated (stand-alone) Gen Whe Mer Ebr Me Efn Gor Est Gwn Hed Du Kev Narrow (stand-alone) 1 2 3 4 5 6 7 8 9 10 11 12 Quarters Wide (format) Q1 Q2 Q3 Q4 Abbreviated (format) Q1 Q2 Q3 Q4 Narrow (format) 1 2 3 4 Wide (stand-alone) Q1 Q2 Q3 Q4 Abbreviated (stand-alone) Q1 Q2 Q3 Q4 Narrow (stand-alone) 1 2 3 4 Eras Wide BCE CE Abbreviated RC AD Narrow RC AD Date Formats Full 2008-02-05T18:30:30 = De Merth 5 Mys Whevrel 2008 1995-12-22T09:05:02 = De Gwener 22 Mys Kevardhu 1995 -0010-09-15T04:44:23 = De Sadorn 15 Mys Gwyngala -10 Long 2008-02-05T18:30:30 = 5 Mys Whevrel 2008 1995-12-22T09:05:02 = 22 Mys Kevardhu 1995 -0010-09-15T04:44:23 = 15 Mys Gwyngala -10 Medium 2008-02-05T18:30:30 = 5 Whe 2008 1995-12-22T09:05:02 = 22 Kev 1995 -0010-09-15T04:44:23 = 15 Gwn -10 Short 2008-02-05T18:30:30 = 05/02/2008 1995-12-22T09:05:02 = 22/12/1995 -0010-09-15T04:44:23 = 15/09/-010 Default 2008-02-05T18:30:30 = 5 Whe 2008 1995-12-22T09:05:02 = 22 Kev 1995 -0010-09-15T04:44:23 = 15 Gwn -10 Time Formats Full 2008-02-05T18:30:30 = 18:30:30 UTC 1995-12-22T09:05:02 = 09:05:02 UTC -0010-09-15T04:44:23 = 04:44:23 UTC Long 2008-02-05T18:30:30 = 18:30:30 UTC 1995-12-22T09:05:02 = 09:05:02 UTC -0010-09-15T04:44:23 = 04:44:23 UTC Medium 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 09:05:02 -0010-09-15T04:44:23 = 04:44:23 Short 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 09:05 -0010-09-15T04:44:23 = 04:44 Default 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 09:05:02 -0010-09-15T04:44:23 = 04:44:23 Datetime Formats Full 2008-02-05T18:30:30 = De Merth 5 Mys Whevrel 2008 18:30:30 UTC 1995-12-22T09:05:02 = De Gwener 22 Mys Kevardhu 1995 09:05:02 UTC -0010-09-15T04:44:23 = De Sadorn 15 Mys Gwyngala -10 04:44:23 UTC Long 2008-02-05T18:30:30 = 5 Mys Whevrel 2008 18:30:30 UTC 1995-12-22T09:05:02 = 22 Mys Kevardhu 1995 09:05:02 UTC -0010-09-15T04:44:23 = 15 Mys Gwyngala -10 04:44:23 UTC Medium 2008-02-05T18:30:30 = 5 Whe 2008 18:30:30 1995-12-22T09:05:02 = 22 Kev 1995 09:05:02 -0010-09-15T04:44:23 = 15 Gwn -10 04:44:23 Short 2008-02-05T18:30:30 = 05/02/2008 18:30 1995-12-22T09:05:02 = 22/12/1995 09:05 -0010-09-15T04:44:23 = 15/09/-010 04:44 Default 2008-02-05T18:30:30 = 5 Whe 2008 18:30:30 1995-12-22T09:05:02 = 22 Kev 1995 09:05:02 -0010-09-15T04:44:23 = 15 Gwn -10 04:44:23 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 Mth 1995-12-22T09:05:02 = 22 Gwe -0010-09-15T04:44:23 = 15 Sad HHmm (HH:mm) 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 09:05 -0010-09-15T04:44:23 = 04:44 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 p.m. 1995-12-22T09:05:02 = 9:05 a.m. -0010-09-15T04:44:23 = 4:44 a.m. 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 p.m. 1995-12-22T09:05:02 = 9:05:02 a.m. -0010-09-15T04:44:23 = 4:44:23 a.m. 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 = Mth, 2-5 1995-12-22T09:05:02 = Gwe, 12-22 -0010-09-15T04:44:23 = Sad, 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 = Whe 1995-12-22T09:05:02 = Kev -0010-09-15T04:44:23 = Gwn MMMd (MMM d) 2008-02-05T18:30:30 = Whe 5 1995-12-22T09:05:02 = Kev 22 -0010-09-15T04:44:23 = Gwn 15 MMMEd (E MMM d) 2008-02-05T18:30:30 = Mth Whe 5 1995-12-22T09:05:02 = Gwe Kev 22 -0010-09-15T04:44:23 = Sad Gwn 15 MMMMd (d MMMM) 2008-02-05T18:30:30 = 5 Mys Whevrel 1995-12-22T09:05:02 = 22 Mys Kevardhu -0010-09-15T04:44:23 = 15 Mys Gwyngala MMMMEd (E MMMM d) 2008-02-05T18:30:30 = Mth Mys Whevrel 5 1995-12-22T09:05:02 = Gwe Mys Kevardhu 22 -0010-09-15T04:44:23 = Sad Mys Gwyngala 15 mmss (mm:ss) 2008-02-05T18:30:30 = 30:30 1995-12-22T09:05:02 = 05:02 -0010-09-15T04:44:23 = 44:23 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 = Mth, 2008-2-5 1995-12-22T09:05:02 = Gwe, 1995-12-22 -0010-09-15T04:44:23 = Sad, -10-9-15 yMMM (y MMM) 2008-02-05T18:30:30 = 2008 Whe 1995-12-22T09:05:02 = 1995 Kev -0010-09-15T04:44:23 = -10 Gwn yMMMEd (EEE, y MMM d) 2008-02-05T18:30:30 = Mth, 2008 Whe 5 1995-12-22T09:05:02 = Gwe, 1995 Kev 22 -0010-09-15T04:44:23 = Sad, -10 Gwn 15 yMMMM (y MMMM) 2008-02-05T18:30:30 = 2008 Mys Whevrel 1995-12-22T09:05:02 = 1995 Mys Kevardhu -0010-09-15T04:44:23 = -10 Mys Gwyngala 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 = Mys Whevrel 2008 1995-12-22T09:05:02 = Mys Kevardhu 1995 -0010-09-15T04:44:23 = Mys Gwyngala -10 Miscellaneous Prefers 24 hour time? Yes Local first day of the week De Lun 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.18.2 2017-10-06 DateTime::Locale::kw(3)
All times are GMT -4. The time now is 06:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy