1 |
On 03/14/2017 04:51 AM, Neil Bothwick wrote: |
2 |
> On Mon, 13 Mar 2017 17:10:40 -0600, thelma@×××××××××××.com wrote: |
3 |
> |
4 |
>> I'm trying to add to Xface menu: Configure Custom Actions |
5 |
>> This: |
6 |
>> pdfunite %N folder/`date +%F`-output.pdf |
7 |
>> |
8 |
>> The file in dir folder gets created ("-output.pdf") but is missing the |
9 |
>> date. |
10 |
>> |
11 |
>> This works from command line: |
12 |
>> pdfunite 1.pdf 2.pdf folder/`date +%F`-output.pdf |
13 |
> |
14 |
> Command substitution is a shell feature, so it may h=not work elsewhere. |
15 |
> The solution may be to write a one line shell script and have XFCE call |
16 |
> that. |
17 |
> |
18 |
> #!/bin/sh |
19 |
> pdfunite $* $(date +%F)-output.pdf |
20 |
|
21 |
Yes, that is what I end up doing, calling a bash script, it is easier to |
22 |
implement. |
23 |
|
24 |
pdfunite %N pdfunite-join.pdf && sh combine_files.sh |
25 |
|
26 |
-- |
27 |
Thelma |