• 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 date & time coercions...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shell script date & time coercions...


  • Subject: Re: Shell script date & time coercions...
  • From: John W Baxter <email@hidden>
  • Date: Tue, 2 Apr 2002 23:06:13 -0800

At 11:32 -0600 4/2/2002, Matthew Stuckwisch wrote:
>The second time doing it with the Terminal command "sudo
>cp -R ~/guifa/ Volumes/FW40/Matt/guifa/" (and then typing in my password)
>took MUCH less time (though with the command I put above you can't
>actually see the progress, oh well).

Don't rely on that backup for anything which is supposed to have an
HFS/HFS+ resource fork. (Not copying the resource forks is almost
certainly not the reason for all of the time difference.) Or a particular
owner and group (-Rp would have been better).


>Actually, this reminds me of something...are AppleScripts granted root
>priveleges, or is there a way for sudo commands to also offer the password?

This may or may not be what you want:

Dictionary entry [hand wrapped] ("altering line endings" is new and beta)
do shell script: execute a shell script or command
(defined in: StandardAdditions.osax)
do shell script string -- the command or shell script to execute.
Examples are 'ls' or '/bin/ps -auxwww'
[administrator privileges boolean]
-- execute the command as the administrator
[password string]
-- use this administrator password to avoid a password dialog
[altering line endings boolean] -- change all line endings
to Mac-style and trim a trailing one (default true)
[Result: string] -- the command output


--
John Baxter email@hidden Port Ludlow, WA, USA
_______________________________________________
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.

  • Follow-Ups:
    • guaranteed crash with path to string
      • From: Mr Tea <email@hidden>
References: 
 >Re: Shell script date & time coercions... (From: Matthew Stuckwisch <email@hidden>)

  • Prev by Date: Re: list of lists as arrays - creating?
  • Next by Date: how to user formatter class?
  • Previous by thread: Re: Shell script date & time coercions...
  • Next by thread: guaranteed crash with path to string
  • Index(es):
    • Date
    • Thread