• 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
run shell scripts as root, not just administrator
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

run shell scripts as root, not just administrator


  • Subject: run shell scripts as root, not just administrator
  • From: Ian Mcginley - Systems Support Engineer <email@hidden>
  • Date: Mon, 27 Oct 2003 11:51:37 +1100

Hi all!

I'm almost done with all of my shell > applescript, however i've got one last hurdle. I have a shell script that MUST be run by root.

Currently i've tried:

do shell script ("cd " & sourceDIR & ";find . -print; cpio -pdmu " & destDIR & > /tmp/cpio.out 2>&1 & "") with administrator priviledges

And this doesn't work :/
So then I tried:

do shell script("sudo su -;cd " & sourceDIR & ";find . -print; cpio -pdmu " & destDIR & > /tmp/cpio.out 2>&1 & "") with administrator priviledges

And that hasn't worked either. :(

Any other methods I could try?

Regards,

--
Ian McGinley
Systems Support Engineer Sun Microsystems Australia
476 St Kilda Road - Melbourne - Australia - 3004
Ph: (03) 8866 6360 Email: email@hidden

UNIX is user-friendly, it is just picky about its friends
_______________________________________________
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.

  • Prev by Date: Re: Panther script hassle: network paths aren't so simple anymore...
  • Next by Date: PreFab UI Browser under Panther
  • Previous by thread: Re: Programming the address book
  • Next by thread: PreFab UI Browser under Panther
  • Index(es):
    • Date
    • Thread