Simple script in cups-pdf.conf post prossenig

Forum rules
Before you post please read this

Simple script in cups-pdf.conf post prossenig

Postby madlinuxman on Sun Dec 01, 2013 12:16 pm

Does any one have a simple script that I can use in the cups-pdf.conf post PostProcessing line, for the purpose of testing/learning please.

Regards
John
madlinuxman
Level 1
Level 1
 
Posts: 4
Joined: Fri Jun 07, 2013 2:16 am

Linux Mint is funded by ads and donations.
 

Re: Simple script in cups-pdf.conf post prossenig

Postby madlinuxman on Thu Dec 05, 2013 2:07 pm

The reason I asked the original question is that the following script fails to run in version 15 or 16, and I am stumped as to what has changed or stoped working, and there is no clue in the logs.

#!/bin/bash

export DISPLAY=:0.0
export XAUTHORITY=/home/$2/.Xauthority

FILENAME=`basename $1`
cd ~
SAVE_TO=$(zenity --file-selection --save --filename="$FILENAME")
mv "$1" "$SAVE_TO"

Regards
John
madlinuxman
Level 1
Level 1
 
Posts: 4
Joined: Fri Jun 07, 2013 2:16 am

Re: Simple script in cups-pdf.conf post prossenig

Postby Habitual on Fri Dec 06, 2013 5:41 pm

madlinuxman wrote:The reason I asked the original question is that the following script fails to run in version 15 or 16, and I am stumped as to what has changed or stoped working, and there is no clue in the logs.

#!/bin/bash

export DISPLAY=:0.0
export XAUTHORITY=/home/$2/.Xauthority

FILENAME=`basename $1`
cd ~
SAVE_TO=$(zenity --file-selection --save --filename="$FILENAME")
mv "$1" "$SAVE_TO"

Regards
John


Try cd "$HOME" instead.
My DorkBlog
Cirrhus9.com - Managed HA VDSs and Scalable grid solutions.
User avatar
Habitual
Level 7
Level 7
 
Posts: 1924
Joined: Sun Nov 21, 2010 8:31 pm
Location: Under the hood


Return to Scripts & Bash

Who is online

Users browsing this forum: No registered users and 1 guest