• 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-sandwich a file in 2 variable strings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shell-sandwich a file in 2 variable strings


  • Subject: Re: Shell-sandwich a file in 2 variable strings
  • From: Gnarlodious <email@hidden>
  • Date: Fri, 06 Feb 2004 19:20:08 -0700

Entity Michael Terry spoke thus:

> Christopher Nebel wrote:
>
>> Because this passes the contents of the file as a parameter to
>> echo(1), it will break if somefile contains more than kern.argmax
>> bytes

> sysctl kern.argmax
>
> kern.argmax = 262144

I lost track of this discussion, but I am saying

do shell script "echo " & quoted form of startHTML & " $(<" & flopPOSIX & ")
" & quoted form of endHTML & ">>" & iPathPOSIX

Where flopPOSIX may be any huge file depending on the database size. Is this
command line safe from threats of amputation? I guess I don't know if I am
running it through a shell variable or what.

Test drive my script if you dare:
<http://www.Gnarlodious.com/OSX/AppleScript/iTunes-iPage.scpt.sit>
_______________________________________________
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:
    • Re: Shell-sandwich a file in 2 variable strings
      • From: Michael Terry <email@hidden>
References: 
 >Re: Shell-sandwich a file in 2 variable strings (From: Michael Terry <email@hidden>)

  • Prev by Date: Re: Do shell script on a remote machine
  • Next by Date: Re: Regex in OS X
  • Previous by thread: Re: Shell-sandwich a file in 2 variable strings
  • Next by thread: Re: Shell-sandwich a file in 2 variable strings
  • Index(es):
    • Date
    • Thread