[Chicago-talk] help with system call

Mike Fragassi frag at ripco.com
Mon Dec 27 11:25:28 PST 2010


With the caveat that I had never heard of ripmime before 10 minutes ago, 
here's what you could do: have the $id_number be name of a directory 
that you pass to -d, e.g. something like /home/richard/attachments/$id. 
mkdir() this directory[*], and if that succeeded, then run ripmime with 
-d $id_dir.  When ripmime is finished and assuming it reports no errors, 
rename the files in $id_dir to whatever you want, with the id number. 
If that leaves $id_dir empty, rmdir() it.

[*] Or better still, use File::Path's make_path()

-- Mike.


More information about the Chicago-talk mailing list