Notices


Reply
Thread Tools
Posts: 3,841 | Thanked: 1,079 times | Joined on Nov 2006
#31
doesn't work all I have now is 09
Try this:
Code:
date "+%-d %B %C%y"
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
 

The Following 2 Users Say Thank You to TA-t3 For This Useful Post:
Posts: 356 | Thanked: 69 times | Joined on Jan 2010 @ Poland
#32
Originally Posted by TA-t3 View Post
Try this:
Code:
date "+%-d %B %C%y"
works fine
 

The Following User Says Thank You to raverpol For This Useful Post:
HumanPenguin's Avatar
Posts: 270 | Thanked: 170 times | Joined on Jul 2007 @ Atlanta, GA + Oxford UK
#33
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
 
Posts: 3,841 | Thanked: 1,079 times | Joined on Nov 2006
#34
@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.
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
 

The Following 2 Users Say Thank You to TA-t3 For This Useful Post:
HumanPenguin's Avatar
Posts: 270 | Thanked: 170 times | Joined on Jul 2007 @ Atlanta, GA + Oxford UK
#35
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
 
Posts: 356 | Thanked: 69 times | Joined on Jan 2010 @ Poland
#36
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
 
HumanPenguin's Avatar
Posts: 270 | Thanked: 170 times | Joined on Jul 2007 @ Atlanta, GA + Oxford UK
#37
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.
 

The Following User Says Thank You to HumanPenguin For This Useful Post:
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#38
Originally Posted by TA-t3 View Post
Try this:
Code:
date "+%-d %B %C%y"
Now it's works
Thanks
 
Posts: 356 | Thanked: 69 times | Joined on Jan 2010 @ Poland
#39
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
 
biggzy's Avatar
Posts: 547 | Thanked: 461 times | Joined on Aug 2009 @ UK
#40
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.
__________________
Nokia N900 - It's what computers have become.
My Web Site
Twitter
 
Reply


 
Forum Jump


All times are GMT. The time now is 06:47.