Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Dans Macabre
Apr 24, 2004


Problem description: I have a command (yt-dlp) that I run in the terminal and it works. I want to run that command, in my user context, every five minutes. I tried first with crontab but for some reason my crontab isn't saving - macOS always thinks I have no crontab and starts a "new file" for me that gets saved nowhere as far as I can tell. Then I tried yeeting my command into automator and I got an error, guessing because it's running not in my user context or something (or maybe cause I installed yt-dlp using pip or something).

This is the command I'm running:
code:
/usr/local/bin/yt-dlp -x --audio-format mp3 https://www.youtube.com/playlist\?list\=PLCEEotW5Tg_ljZzgB7XWcB1d_DQSlUdNn -o "/Users/dansmacabre/Sync/%(title)s.%(ext)s"
This is the error I get if I run it from Automator: https://pastebin.com/hZVAMHDu

Attempted fixes: Tried crontab -e multiple times... then I also tried automator and got an error.

Recent changes: No, brand new thing

--

Operating system: MacOS Sonoma 14.3

System specs: MacBook Pro M1 16gb RAM

Location: USA

I have Googled and read the FAQ: Yes.

When I google it, it seems like crontab SHOULD work, so I don't know why it's not. That's the first problem, and ideally I'd like to solve it that way because I'm more familiar with crontab than I am with any other thing.

Adbot
ADBOT LOVES YOU

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply