Results 1 to 2 of 2

Thread: Scripting questions

  1. #1
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Thanks
    8
    Thanked 127 Times in 121 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Scripting questions

    I'm not a newbie coder but my knowledge hardly go outside of z80 asm and C++. I only played a few times with scripts (mainly javascript and php BTW) and I'm now forced to use shell script...

    1) how to get the equivalent of QCoreApplication::applicationDirPath() with a shell ??? I'm pretty sure it can be done by combining two variables : $0 and $PWD but I don't know how...

    2) man pages are pretty poor, where could I find a good tutorial on writing efficient and portable shell script?
    Current Qt projects : QCodeEdit, RotiDeCode

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Scripting questions

    Quote Originally Posted by fullmetalcoder
    how to get the equivalent of QCoreApplication::applicationDirPath() with a shell ???
    Try:
    bash Code:
    1. DIR=`dirname $0`
    To copy to clipboard, switch view to plain text mode 

    Quote Originally Posted by fullmetalcoder
    man pages are pretty poor, where could I find a good tutorial on writing efficient and portable shell script?
    What shell do you use?

    http://tldp.org/LDP/abs/html/index.html

Similar Threads

  1. Open source License and some questions!
    By GioFX in forum Newbie
    Replies: 7
    Last Post: 6th January 2009, 16:40
  2. qobject connect questions
    By VireX in forum Newbie
    Replies: 5
    Last Post: 20th May 2007, 09:04
  3. Memory management questions (im new to Qt)
    By scarvenger in forum Qt Programming
    Replies: 2
    Last Post: 6th May 2007, 07:41
  4. 2 Questions about layouts
    By SkripT in forum Qt Programming
    Replies: 1
    Last Post: 26th February 2006, 13:54
  5. Qt related questions and thoughts about getting job
    By AlexKiriukha in forum General Discussion
    Replies: 4
    Last Post: 26th January 2006, 12:25

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.