Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Date on desktop? N900

    Reply
    Page 4 of 6 | Prev |   2     3   4   5     6   | Next
    TA-t3 | # 31 | 2010-03-09, 16:40 | Report

    Originally Posted by
    doesn't work all I have now is 09
    Try this:
    Code:
    date "+%-d %B %C%y"

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to TA-t3 For This Useful Post:
    HumanPenguin, Schturman

     
    raverpol | # 32 | 2010-03-09, 16:42 | Report

    Originally Posted by TA-t3 View Post
    Try this:
    Code:
    date "+%-d %B %C%y"
    works fine

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to raverpol For This Useful Post:
    Schturman

     
    HumanPenguin | # 33 | 2010-03-09, 16:42 | Report

    Originally Posted by raverpol View Post
    doesn't work all I have now is 09
    ah sorry thats what comes from doing this of the top of my nogin.

    The issue is the spaces after the +

    the following will work

    date +'%d %b %C%y'

    EDIT i missed the space between date and + fixed

    Edit | Forward | Quote | Quick Reply | Thanks

     
    TA-t3 | # 34 | 2010-03-09, 16:45 | Report

    @HumanPenguin: You need to add '-' after the '%' to avoid it getting padded with leading zeroes. I.e. the difference between

    09 March 2010 and
    9 March 2010 is the '-' in %-d

    Also, the string must be quoted or it won't be passed to 'date' correctly.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to TA-t3 For This Useful Post:
    HumanPenguin, Schturman

     
    HumanPenguin | # 35 | 2010-03-09, 16:46 | Report

    Originally Posted by raverpol View Post
    Flip Calendar http://talk.maemo.org/showthread.php...400#post561400
    Very nice. pity you have no N900. Would be exactly what is wanted for Maemo5

    Edit | Forward | Quote | Quick Reply | Thanks

     
    raverpol | # 36 | 2010-03-09, 16:52 | Report

    Originally Posted by HumanPenguin View Post
    Very nice. pity you have no N900. Would be exactly what is wanted for Maemo5
    oh yeah, I didn't noticed hehe

    Edit | Forward | Quote | Quick Reply | Thanks

     
    HumanPenguin | # 37 | 2010-03-09, 16:54 | Report

    Originally Posted by raverpol View Post
    oh yeah, I didn't noticed hehe
    I keep meaning to play with the scratchbox set up. Maybe Ill have a go at porting this this weekend. Just to see what it takes.

    when I have some time Ill look though all the developer advice and see how much work it is.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to HumanPenguin For This Useful Post:
    Schturman

     
    Schturman | # 38 | 2010-03-09, 16:56 | Report

    Originally Posted by TA-t3 View Post
    Try this:
    Code:
    date "+%-d %B %C%y"
    Now it's works
    Thanks

    Edit | Forward | Quote | Quick Reply | Thanks

     
    raverpol | # 39 | 2010-03-09, 17:07 | Report

    Originally Posted by biggzy View Post
    Command to show free mass memory: df -h | awk ' $1 == "/dev/mmcblk0p1" {print $4"B"}'

    Command to show free memory on mem card: df -h | awk ' $1 == "/dev/mmcblk1p1" {print $4"B"}'
    nice commands but sth wrong with them I put them as u wrote here but all time I have Invalid Command as reply

    Edit | Forward | Quote | Quick Reply | Thanks

     
    biggzy | # 40 | 2010-03-09, 17:17 | Report

    Originally Posted by raverpol View Post
    nice commands but sth wrong with them I put them as u wrote here but all time I have Invalid Command as reply
    They should work ok, did you copy n paste? If so make sure its on 1 line.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 4 of 6 | Prev |   2     3   4   5     6   | Next
vBulletin® Version 3.8.8
Normal Logout