- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- >> doesn't work
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2004 01:51 AM
11-15-2004 01:51 AM
set -x
...
LOGFILE=log
...
date > dateline
...
cat dateline >> $LOGFILE
...
cat temp3 >> $LOGFILE
...
echo "....DONE" >> $LOGFILE
...
Hi, I have s script that execute lines like above. The problem that dateline info never comes into logfile. It's not my script and I came from other platform, so start thinking what cab be wrong with it, maybe there is any kind of syncpoint or ">>" is not working as a concatinating with some conditions, or ...
Thanks
Vlad
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2004 02:01 AM
11-15-2004 02:01 AM
Re: >> doesn't work
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2004 02:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2004 02:04 AM
11-15-2004 02:04 AM
Re: >> doesn't work
Computers never do what you want them to do . Only what you ask them to do
Could you post the script and the output when run with set -x
Look at www.shelldorado.com for a good scripting source
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2004 02:05 AM
11-15-2004 02:05 AM
Re: >> doesn't work
$ LOGFILE=log
$ cat dateline >> $LOGFILE
$ cat log
Mon Nov 15 10:03:22 EST 2004
A quick test seems to work for me. Maybe if you post the whole script something else will show up but, as is, it should work.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2004 02:09 AM
11-15-2004 02:09 AM
Re: >> doesn't work
date >> ${LOGFILE}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2004 02:21 AM
11-15-2004 02:21 AM
Re: >> doesn't work
If you want to store the starting date of your script, you can do it in a variable :
dateline=$(date)
echo $dateline >> $LOGFILE
it would suppress the risk of having two script using this file.
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2004 02:23 AM
11-15-2004 02:23 AM
Re: >> doesn't work
Thansk to everyone, for support.
The whole script is too big to post, and my posting reflected all problems.
There is a cd $WDIR at the very beginning and it was the problem, as it pointed to common root where 30 scripts were ran. THansk RAC !!!
Thansk all again.
I also will do date >> directly into log.
Best
Vlad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2004 01:41 PM
11-15-2004 01:41 PM
Re: >> doesn't work
Bill Hassell, sysadmin