Sponsored Content
Full Discussion: Script tool
Top Forums Shell Programming and Scripting Script tool Post 42611 by yotoruja on Friday 31st of October 2003 10:10:46 AM
Old 10-31-2003
Quote:
As far as validation, what do you want to check for? How do you determine what's invalid and what's valid? (Not in code, just tell me in plain english what you consider valid and not valid.)


1) for the first parameter the following line:

0 GUID {A84F050...526480000} Module GDS Basic

is invalid since GUID is not a Keyname everything else is valid.


2) for the second parameter the following line:

0 MsgDBPath 1

if I pass in 4 it will error out since there isn't anything to return.


thanks
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Log Rotation Tool/Script

Hello all Does anyone has an intersting script or a good freeware tool for log rotation that is good for Unix and Linux as well ? My thanks in advance (4 Replies)
Discussion started by: yelalouf
4 Replies

2. Web Development

Tool Tip on a Perl CGI script

Hi, I am writing a perl script using Perl CGI. There are various HTML tables and forms involved in this. Now I wanted to add a tool tip to the elements here but I am not able to find documentation on how to do it. Can anyone help? Thanks in advance. Regards, garric (5 Replies)
Discussion started by: garric
5 Replies

3. Shell Programming and Scripting

Help with Expect tool Script

Problem Description: I have written the Expect script in Linux box, able to login from Linux to Windows and able to execute the command(eg, hostname) on windows server which produces some value. I want to pass this value from Windows to Linux box . Can we pass any parameter from Linux with expect... (2 Replies)
Discussion started by: khagendra
2 Replies

4. Infrastructure Monitoring

need script for passwd , can't use expect tool

Hi , as others users here , i'm searching for a script which can automate "passwd" dialog . I saw threads about "expect tool" but on my platforms , "C" product isn't installed and i'm not the admin so i can't install it. is there another way to do it , with a "simple" shell script ??? ... (35 Replies)
Discussion started by: Nicol
35 Replies

5. Shell Programming and Scripting

script using expect tool

Hi All, I need ur help and suggestion to make my code efficient.I have to reset the password for multiple unix flavour using expect tool.There is one file in which I have mentioned ip address and main script will pickup those ip and reset all password and it will write to a log file whether it has... (1 Reply)
Discussion started by: manish_1678
1 Replies

6. Shell Programming and Scripting

script for GUI tool

Hi Legends. Thanks for all your support till now, Now my requirement is planned to create a GUI backup tool for both "Source Code Backup" and "Mysql Backup" is it possible to write own code for this , or else any other opensource Backup tool is available which option is better? my wish is Write... (0 Replies)
Discussion started by: anishkumarv
0 Replies

7. Shell Programming and Scripting

Giving automatic multiple Input to a tool from shell script

Hi, Please help me,its urgent. I have a tool that i want to run from a shell script. When we run the tool it will ask the user choice to add or delete. When user enter the choice it will then ask how many units he want to delete or add and will add or delete accordingly. Now I want to... (1 Reply)
Discussion started by: saket18@ymail.c
1 Replies

8. Shell Programming and Scripting

help me for Perl script for tool usages

Hi, How to do Perl script for floating license usages metric. Anyone help me out this issue? Regards, Ram. (0 Replies)
Discussion started by: ramanthan
0 Replies

9. Shell Programming and Scripting

Shell script executed from Informatica ETL tool is spawning 2 processes for one script

Hi, I am having a shell script which has a while loop as shown below. while do sleep 60 done I am executing this script from Informatica ETL tool command task from where we can execute UNIX commands/scripts. When i do that, i am seeing 2 processes getting started for one script... (2 Replies)
Discussion started by: chekusi
2 Replies

10. Shell Programming and Scripting

Need help updating my AIX shell script that uses IBM tape tool.

I have a shell script that interfaces with our tape library using IBM's Tape Diagnostic tool called "itdt". The script does some basic stuff, it queries the tape library, loads tape to/from drive; it knows which inventory slot to pick the tape from based on SLOT=$(($BASESLOT + $TODAY)). The... (10 Replies)
Discussion started by: c3rb3rus
10 Replies
Data::GUID(3pm) 					User Contributed Perl Documentation					   Data::GUID(3pm)

NAME
Data::GUID - globally unique identifiers VERSION
version 0.046 SYNOPSIS
use Data::GUID; my $guid = Data::GUID->new; my $string = $guid->as_string; # or "$guid" my $other_guid = Data::GUID->from_string($string); if (($guid <=> $other_guid) == 0) { print "They're the same! "; } DESCRIPTION
Data::GUID provides a simple interface for generating and using globally unique identifiers. GETTING A NEW GUID
new my $guid = Data::GUID->new; This method returns a new globally unique identifier. GUIDS FROM EXISTING VALUES
These method returns a new Data::GUID object for the given GUID value. In all cases, these methods throw an exception if given invalid input. from_string my $guid = Data::GUID->from_string("B0470602-A64B-11DA-8632-93EBF1C0E05A"); from_hex # note that a hex guid is a guid string without hyphens and with a leading 0x my $guid = Data::GUID->from_hex("0xB0470602A64B11DA863293EBF1C0E05A"); from_base64 my $guid = Data::GUID->from_base64("sEcGAqZLEdqGMpPr8cDgWg=="); from_data_uuid This method returns a new Data::GUID object if given a Data::UUID value. Because Data::UUID values are not blessed and because Data::UUID provides no validation method, this method will only throw an exception if the given data is of the wrong size. IDENTIFYING GUIDS
string_guid_regex hex_guid_regex base64_guid_regex These methods return regex objects that match regex strings of the appropriate type. from_any_string my $string = get_string_from_ether; my $guid = Data::GUID->from_any_string($string); This method returns a Data::GUID object for the given string, trying all known string interpretations. An exception is thrown if the value is not a valid GUID string. best_guess my $value = get_value_from_ether; my $guid = Data::GUID->best_guess($value); This method returns a Data::GUID object for the given value, trying everything it can. It works like "from_any_string", but will also accept Data::UUID values. (In effect, this means that any sixteen byte value is acceptable.) GUIDS INTO STRINGS
These methods return various string representations of a GUID. as_string This method returns a "traditional" GUID/UUID string representation. This is five hexadecimal strings, delimited by hyphens. For example: B0470602-A64B-11DA-8632-93EBF1C0E05A This method is also used to stringify Data::GUID objects. as_hex This method returns a plain hexadecimal representation of the GUID, with a leading "0x". For example: 0xB0470602A64B11DA863293EBF1C0E05A as_base64 This method returns a base-64 string representation of the GUID. For example: sEcGAqZLEdqGMpPr8cDgWg== OTHER METHODS
compare_to_guid This method compares a GUID to another GUID and returns -1, 0, or 1, as do other comparison routines. as_binary This method returns the packed binary representation of the GUID. At present this method relies on Data::GUID's underlying use of Data::UUID. It is not guaranteed to continue to work the same way, or at all. Caveat invocator. IMPORTING
Data::GUID does not export any subroutines by default, but it provides a few routines which will be imported on request. These routines may be called as class methods, or may be imported to be called as subroutines. Calling them by fully qualified name is incorrect. use Data::GUID qw(guid); my $guid = guid; # OK my $guid = Data::GUID->guid; # OK my $guid = Data::GUID::guid; # NOT OK guid This routine returns a new Data::GUID object. guid_string This returns the string representation of a new GUID. guid_hex This returns the hex representation of a new GUID. guid_base64 This returns the base64 representation of a new GUID. guid_from_anything This returns the result of calling the "from_any_string" method. TODO
o add namespace support o remove dependency on wretched Data::UUID o make it work on 5.005 AUTHOR
Ricardo SIGNES, "<rjbs@cpan.org>" BUGS
Please report any bugs or feature requests to "bug-data-guid@rt.cpan.org", or through the web interface at <http://rt.cpan.org>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. COPYRIGHT
Copyright 2006 Ricardo Signes, All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2011-01-18 Data::GUID(3pm)
All times are GMT -4. The time now is 04:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy