0 Members and 1 Guest are viewing this topic.
#!/usr/bin/perl# send pictures from shotwell via icedove# arguments are absolute file names# the icedove invocation looks like:# icedove -compose "attachment='file1,file2,file3'"# start command$cmd = "icedove -compose \"attachment=\'";#parse argsforeach my $a(@ARGV) { $cmd=$cmd.$a.",";}#remove last commachop $cmd;# closing quotation marks$cmd = $cmd."\'\"";exec $cmd;
#!/bin/sheval "icedove -compose \"attachment='$(echo $* | tr \ ,)'\""