simple ls commend hangs on >

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

simple ls commend hangs on > 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?
spawnreaper
 
Posts: 14
Joined: Sat Apr 29, 2017 3:31 pm

Re: simple ls commend hangs on > Thu Jul 13, 2017 10:48 am • by Mr_Noodle
How are you determining it's the redirect that's the problem?
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support