Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Q: Execute terminal command from an application

    Reply
    Page 2 of 2 | Prev |   1   2 |
    KullasH | # 11 | 2013-05-02, 07:24 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by KullasH; 2013-05-02 at 13:19.

     
    Page 2 of 2 | Prev |   1   2 |
vBulletin® Version 3.8.8
Normal Logout