Shirt Pocket Discussions  
    Home netTunes launchTunes SuperDuper! Buy Now Support Discussions About Shirt Pocket    

Go Back   Shirt Pocket Discussions > SuperDuper! > General

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-29-2006, 06:57 PM
fatshark fatshark is offline
Registered User
 
Join Date: Aug 2006
Posts: 8
Shell/perl scripting and permissions? FTP

I need to run a shell script to FTP the completed sparseimage backup to an offsite machine (no I can't mount the drive). I'm a reasonable perl coder and have a script that - from the command line - does everything I need. However, when called from SD it dies with an error buried deep within the Net::FTP module code.

Since a simple script that just dumps environment variables works fine when called from SD I suspect it's a permissions problem on the perl modules used. For the perl-savvy amongst you, I can 'use Net::FTP' perfectly well ... so the script can find the correct module. However, creation of the $ftp object ...

$ftp = Net::FTP->new('ip' etc etc);

doesn't even die gracefully, just fails horribly with a cryptic error. Any suggestions? From the ownership of the log files created during debugging (or rather, not debugging) this script it looks as though SD runs as root.

As an aside, are there other users who have a different solution for the same problem - applescript or bash perhaps?

Thanks
David
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:02 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.