This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Help on two command-line arguments

Tags: None
(comma "," separated)
User avatar
stewartmm
Registered Member
Posts
24
Karma
0
OS

Help on two command-line arguments

Thu Sep 13, 2012 11:32 pm
These are for two KDE programs.

a) Kgpg

The editor has a "sign" and "encrypt" function, but no "sign and encrypt". It does however have a custom command, which I wonder could be used to transform "encrypt file" into "sign and encrypt file".

But what is the syntax to do this with the Kgpg editor? (I'm familiar how to do this with individual files, by hand, at the command line using GnuPG, but not for "generic" clipboard text, which what I suppose the commands in the Kpgp editor do).

b) Shredder Servicemenu

I've modified the Shredder servicemenu to use several wiping patterns instead of the default 35-pass one (which I think is overkill), such as a one-pass wipe. Here's the business end of that command:

Exec=shred -f -u -z -v -n 1 %u

However what I see is that this command will only overwrite/delete multiple files only if they are the same *type*. You can wipe any number of pdfs, jpgs. mp4s, txts, docs, as long as they're all the same type, but you can't wipe all the files in a directory containing pdfs and jpgs and docs with this command (at least not with one execution, you'd have to do three executions).

How do you modify this command to do that?

Stewart
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
If "shred" can take multiple files being passed to it, then %U may work better than %u. Otherwise, I cannot see any reason why it couldn't accept multiple files of a different type being passed to it at the same time (With %u KDE will launch one instance of shred for each file).

As a test, do two files of a similar type (a png and a jpg for instance) get erased when you attempt to delete them together?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell