Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Another way, which avoids 'tee'' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Another way, which avoids 'tee'
Authored by: ospfguru on May 01, '03 08:44:32PM

I have tried this command as shown and it does not appear to
be working, terminal accept either of the two solutions presented
here but neither is working. Might I be doing something wrong? I
tried as a normal user and root.

alias note 'date >> ~/users/topkick/ssh.txt; tee -a ~/users/
topkick/ssh.txt > /dev/null'

alias note "date >> /tmp/notes.txt; cat >> /tmp/notes.txt"

Always do Right - This will gratify some people and astonish others ~ Mark Twain

[ Reply to This | # ]
Another way, which avoids 'tee'
Authored by: pink on May 02, '03 06:36:12AM

I suppose the following:
- the folder you are writing to does exist
- permissions are ok
- you restarted after introducing the aliases

if so, try writing the code as one line into /usr/share/tcsh/examples/aliases
and try again.
HTH, pink

[ Reply to This | # ]