Thread
:
Q: Execute terminal command from an application
View Single Post
KullasH
2013-05-02 , 07:24
Posts: 15 | Thanked: 2 times | Joined on Sep 2012
#
11
I have another problem though. I'm not able to perform a simple function which checks are you dealing with file or directory.
In BASH you execute
[ -d $ ] && echo "Folder exists." || "Folder does NOT exist."
and where $ is the file or folder in certain path (e.g.
/home/user
).
If I'm executing this command in terminal it displays the result depending is it a file or directory. When using Process QML it doesn't. Any suggestions?
EDIT:
Also I noticed that
pwd
or
cd $
where $ is folder where you want to go does not work either. They simply doesn't ouput anything, just error.
Last edited by KullasH; 2013-05-02 at
13:19
.
Quote & Reply
|
KullasH
View Public Profile
Send a private message to KullasH
Find all posts by KullasH