dcop commandline: syntax question
Kurt Pfeifle
k1pfeifle at gmx.net
Mon Jan 29 18:09:44 GMT 2007
Can someone please point me to a resource that documents the syntax
for handing "complex" parameters to a dcop commandline. I've googled
(and experimented with what I found) for several hours, but didn't
succeed.
Case in question: a KDEPrint user's problem, which I see as well on
one of the machines I've access to:
http://lists.kde.org/?t=116965240700005&r=1&w=2
http://lists.kde.org/?t=116975522400003&r=1&w=2
I get this:
kurt@~> dcop kded kdeprintd | grep print
int print(QString cmd,QStringList files,bool remove)
Assuming now, I'd like to use this:
ls -l : for the "cmd" part,
/tmp/kdeprint.txt : for the "files" part,
false : for the "remove" part
-- what is/are the correct/expected way/s to specify these parameters
on the dcop command line?
Here are some of the dozens of variations I tried:
kurt@~> dcop kded kdeprintd print "ls -l" "/tmp/kdeprint.txt" "false"
Not enough arguments.
kurt@~> dcop kded kdeprintd 'print("ls -l", "/tmp/kdeprint.txt", "false")'
Not enough arguments.
kurt@~> dcop kded kdeprintd print("ls -l", /tmp/kdeprint.txt, false)
bash: syntax error near unexpected token `('
kurt@~> dcop kded kdeprintd print\("ls -l", /tmp/kdeprint.txt, false\)
parentheses do not match
kurt at soprano:~> dcop kded kdeprintd print [ "ls -l", "/tmp/kdeprint.txt", "false" ]
Not enough arguments.
Please advice.
Cheers,
Kurt
More information about the kde-core-devel
mailing list