Cyberduck Mountain Duck CLI

#8868 closed defect (worksforme)

Command not found when runnnig from Applescript

Reported by: chris_g Owned by: dkocher
Priority: normal Milestone:
Component: cli Version: 4.7
Severity: normal Keywords:
Cc: Architecture:
Platform:

Description (last modified by dkocher)

Hi, I'm trying to upload files to RackSpace CDN, and can do so using the command line "Duck" tool in my Mac's Terminal, but when I try to run the Applescript below, the system isn't able to see "Duck." Not sure why.

	do shell script "duck --username <username> --upload rackspace://Downloads/Client/test_upload.mp3 ~/Home/test_upload.mp3"

Result: error "sh: duck: command not found" number 127

Change History (4)

comment:1 Changed on Jun 9, 2015 at 9:47:08 AM by dkocher

  • Component changed from core to cli
  • Description modified (diff)
  • Owner set to dkocher
  • Status changed from new to assigned

comment:2 Changed on Jun 9, 2015 at 9:47:28 AM by dkocher

  • Summary changed from running "Duck" command line tool from Applescript to Command not found when runnnig from Applescript

comment:4 Changed on Jun 9, 2015 at 9:50:17 AM by dkocher

  • Resolution set to worksforme
  • Status changed from assigned to closed

/usr/local/bin is not in the PATH environment seen by AppleScript. As a workaround, run duck with the absolute path /usr/local/bin/duck.

Note: See TracTickets for help on using tickets.
swiss made software