![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| running command "top" in cron | freddy1228 | UNIX for Dummies Questions & Answers | 3 | 03-18-2008 12:43 PM |
| How to display hostname in command prompt | civic2005 | SUN Solaris | 3 | 10-12-2007 06:42 AM |
| Inconsistent memory usage display | spdas | Filesystems, Disks and Memory | 2 | 02-15-2007 09:15 PM |
| PS command does not display shell script running | hadarot | Shell Programming and Scripting | 4 | 09-15-2005 02:56 AM |
| Running "wall" command from cron | xadamz23 | Shell Programming and Scripting | 1 | 05-27-2005 05:43 PM |
|
|
Submit Tools | LinkBack | Thread Tools | 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. |
| Forum Sponsor | ||
|
|