Welcome, Guest. Please login or register.

Author Topic: GUID number generator  (Read 3476 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline djrikkiTopic starter

  • Sr. Member
  • ****
  • Join Date: Mar 2010
  • Posts: 346
    • Show all replies
GUID number generator
« on: May 05, 2010, 08:12:51 PM »
Hi guys,

I have a software suggestion, I had a quick look around the net couldn't find anything.

Shell program - AGUID - The GUID number generator

Wiki Reference: (http://en.wikipedia.org/wiki/Globally_Unique_Identifier)

Having used AppleScript over the past few months I stumbled on the Mac command line equivalent 'uuidgen' and couldn't find any mention of one on the Amiga platform.

I believe it would be a beneficial shell program to include as standard in OS4.

Argument usage:

AGUID
result: 21EC2020-3AEA-1069-A2DD-08002B30309D / a random guid number is generated

further shell options:

1. AGUID  -c //

eg. AGUID -c DH0:applicationx/?.html

result: shell program generators a random number and checks the directory to see if the file already exists, if the unlikely event it does already exist generator a new number and check again

2. AGUID -f username : password @ ftpsite.example.com/database/

result: same as above but check a remote ftp server directory

3. AGUID -o

result: generated number is written to the given filename or appended

---

Seems like a straightforward program someone could write.  Your thoughts please.:)

Offline djrikkiTopic starter

  • Sr. Member
  • ****
  • Join Date: Mar 2010
  • Posts: 346
    • Show all replies
Re: GUID number generator
« Reply #1 on: May 05, 2010, 09:11:00 PM »
@BigBenAssue

I generate a GUID in Applescript to create a unique filename.html for generating online quote and order forms to send on to an ftp server.

I don't use an Amiga atm, but I do hope to purchase the X1000 at some point so I don't have an immediate problem that requires a solution.

I guess it would be a great addition to the standard shell programs as GUID seems like a popular solution to random filename generation.

Offline djrikkiTopic starter

  • Sr. Member
  • ****
  • Join Date: Mar 2010
  • Posts: 346
    • Show all replies
Re: GUID number generator
« Reply #2 on: May 05, 2010, 09:14:24 PM »
@jorkany

Yeah, but you wouldn't call that from a running application or scripting language.