• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Shell Script on a string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shell Script on a string


  • Subject: Re: Shell Script on a string
  • From: Hudson Barton <email@hidden>
  • Date: Sun, 17 Nov 2002 08:07:55 -0500

At 4:22 AM -0800 11/17/02, Randal L. Schwartz wrote:
>>>>> "Hudson" == Hudson Barton <email@hidden> writes:

Hudson> OK. That's excellent. Now I want to do one that requires entering a
Hudson> password (an encryption routine), but I can't get the syntax
Hudson> right. Here's what I have:

Hudson> set x to (do shell script ("echo '" & myText & "' | openssl bf -salt
Hudson> -pass pass:" & Password1 & ""))

These are *soooo* unsafe when the password contains odd characters.

Shell quoting, people. Shell metacharacters, people.

{sigh}


Which "odd characters" are unsafe? Why are they unsafe?

Notwithstanding the issue of "unsafe" characters, I can't get the syntax right even with a simple password like "hello".

H.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Shell Script on a string (From: Hudson Barton <email@hidden>)
 >Re: Shell Script on a string (From: Axel Luttgens <email@hidden>)
 >Re: Shell Script on a string (From: Hudson Barton <email@hidden>)

  • Prev by Date: Re: OK - so who ate my digests?
  • Next by Date: Re: Is Mail scriptable ??
  • Previous by thread: Re: Shell Script on a string
  • Next by thread: Re: Shell Script on a string
  • Index(es):
    • Date
    • Thread