Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AS and shell



Title: AS and shell

Hi all, I’m trying to script a shell that includes variables as follows:

#!/bin/sh
export PATH="/opt/darwinports/bin:/bin:/sbin:/usr/bin:/usr/sbin"
id >> "$1/buildimage.log"
date >> "$1/buildimage.log"
rm -rf "$3"
dvdauthor -o "$3" -x "$2" 2>> "$1/buildimage.log"
mkisofs -dvd-video -o "$1/$5.iso" -volid "$5 DVD" "$3" "$4" 2>> "$1/buildimage.log"
rm -rf "$3"

Until now I have been able to get the variables ($1,$2,etc.) all right by “quoted forms of their POSIX paths”, but I don’t know how I can integrate the line breaks there are in this shell in the “do shell” command. Help anyone ?

Best,

j.

Jay Louvion
Studio Casagrande
3, rue Müller-Brun
1208 Geneva

T+4122 840 3272
F+4122 840 3271

skypeme:
jaylouvion

www.studiocasagrande.com


P Please consider the environment before printing this email.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.