Page 1 of 1

simple ls commend hangs on >

PostPosted: Wed Jul 12, 2017 11:40 am
by spawnreaper
Hello,

I am trying to run a simple script that creates a list of a directory and print it into a txt on another location.
It works fine in terminal but when I try to make it in a script it hangs on the ">" character.
The Terminal command looks like this.
Code: Select all
ls /Volumes/Movies* > "/Users/Vincent/Documents/8 Stock/Lists/Movies.txt"


anybody any Idea why this is not working in script form?

Re: simple ls commend hangs on >

PostPosted: Thu Jul 13, 2017 10:48 am
by Mr_Noodle
How are you determining it's the redirect that's the problem?