Scripting Mac OS X
Subject:   loginhook
Date:   2004-03-04 10:10:02
From:   yantheman
Good article thanks.
I'm stuck running commands in my login script in 10.3 and I'm having trouble with paths.
Here's my test login hook script:

/usr/bin/touch ~$1/Library/Preferences/thisisatest.txt
exit 0
# end

'sudo yan' gives 'touch: /Users/yan/Preferences/thisisatest.txt: No such file or directory'

The command works fine out of the script.
I need to use a relative path to find the users home folder because some of my users are in /Users and some are in /network for networked home folder. Any ideas would be appreciated.

1 to 1 of 1
  1. loginhook
    2004-03-04 13:26:16  jamesreynolds [View]

    • loginhook
      2004-03-04 14:26:25  yantheman [View]

      • loginhook
        2004-03-04 14:35:07  jamesreynolds [View]

1 to 1 of 1