![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| SuSE SUSE Linux is a major operating system. The developer rights are owned by Novell, Inc. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| running command "top" in cron | freddy1228 | UNIX for Dummies Questions & Answers | 3 | 03-18-2008 04:43 PM |
| How to display hostname in command prompt | civic2005 | SUN Solaris | 3 | 10-12-2007 09:42 AM |
| Inconsistent memory usage display | spdas | Filesystems, Disks and Memory | 2 | 02-16-2007 01:15 AM |
| PS command does not display shell script running | hadarot | Shell Programming and Scripting | 4 | 09-15-2005 05:56 AM |
| Running "wall" command from cron | xadamz23 | Shell Programming and Scripting | 1 | 05-27-2005 08:43 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
inconsistent ls command display at the command prompt & running as a cron job
Sir,
I using the following commands in a file (part of a bigger script): #!/bin/bash cd /opt/oracle/bin ls -lt | tail -1 | awk '{print $6}' >> /tmp/ramb.out If I run this from the command prompt the result is: 2007-05-16 if I run it as a cron job then I get: May In both cases I need to get: 2007-05-16 Can any help with this? Thanks in advance. |
|
||||
|
Thanks for all the suggestions and a solution.
time-style= long-iso or time-style=+%Y-%m-%d will do us nicely. Once again thanks. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|