re : grep

2002-09-18 Thread smoke

thanks

__
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



grep 'or'

2002-09-18 Thread smoke

is there a way to "or" grep?

like grep a or b

 thanks!

__
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



cat?

2002-09-18 Thread smoke

id like to append something to the beginning of each
line on a file.

e.g.

from - contents of file

netscape.com
yahoo.com
altavista.com
redhat.com

to - newfile or existing file

www.netscape.com
www.yahoo.com
www.altavista.com
www.redhat.com

( further more ) only entries beginning with a
-
netscape.com
yahoo.com
www.altavista.com
redhat.com


-

scripting seems to complicated! thanks for your help!


__
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



crontab shell?

2002-09-08 Thread smoke

hi,

im using this command to parse squid's log files.

cat /usr/local/squidlog/access.log.0 | calamaris -a -w
>/var/www/html/calamaris/`date +%m%d%y`.html

this works when typed. however when the line is
inserted in crontab ( crontab -e ) it doesnt work.. 

here's the error message...

---
cat /usr/local/squidlog/access.log.0 |calamaris -a
-w >/var/www/html/calamaris/`date +

/bin/sh: -c: line 1: unexpected EOF while looking for
matching ``'
/bin/sh: -c: line 2: syntax error: unexpected end of
file
---

what happens? is crontab using a different shell? (?!
). can this be done without saving the whole line into
a file then calling for it from crontab? 

thanks



__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



you have mail!

2002-09-04 Thread smoke



is the /etc/profile file always read when a user logs
in? id like to replace the bash2.5$ prompt without
having to add .bashrc to all users ( strangely not in
there home directories )

also how do you inform users whether or not they have
mail right after they login. is there a how-to for
this? 


thanks!@
struggling struggling struggling!

__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



Re: how to access a directory whose name have space?

2002-09-03 Thread smoke

how about
a file named

"-zf"

i cant delete it, it was created from a wrong tar
command.

thanks!


--- Mike Burger <[EMAIL PROTECTED]> wrote:
> Another way is to put the directory/file name in
> quotes.
> 
> less "file name"
> 
> ls "directory name"
> 
> cd "/path/to/directory name"
> 
> etc.
> 
> On 3 Sep 2002, Samuel Flory wrote:
> 
> > On Tue, 2002-09-03 at 09:18, Jianping Zhu wrote:
> > > for example: A directory name Start Menu
> > > I can not use cd Start Menu
> > > how can I access files in this Directoy?
> > > 
> > 
> > For file with hard to type names you can always
> try tab completion.  On
> > the plus side you can see what you would have
> needed to type.
> > 
> > example:
> > cd Start
> > 
> > Also midnight commander can generally handle it. 
> Try typing "mc" at the
> > command line.
> > 
> > 
> > 
> > 
> 
> 
> 
> -- 
> redhat-list mailing list
> unsubscribe
>
mailto:[EMAIL PROTECTED]?subject=unsubscribe
>
https://listman.redhat.com/mailman/listinfo/redhat-list


__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



Re: how to automatically put files on all /home/user directories

2002-09-03 Thread smoke

hey mark,

i was attempting to setup mail quotas. i couldnt make
quota turn on with /var. since the mail is stored
there, i wanted mail to be "diverted" into /home. 

i found a thread saying that i should put "mail.txt"
file on the home directory so pine would pull it out
/var/spool/mail when the user starts pine. 

the suggested things worked i think... until our
consultant kindly told me that putting mail into /home
would pose different kinds of problems.. like imap,
pop3 problems in the future. i had no idea that it
could potentially cause some problems!

so he told me to try and setup quota's on /var. anyway
it still wuldnt work, until we used we used force with
quota. anyway mail and home directories will have
separate quota's now i think. 

i still dont know how to transfer hundreds of users to
the new server. i think i can just copy the /home
right? hope that works!

i just really started this job ( my first ) so sorry
if i sound like a newbie. lol, i am! 

thanks,
mark
the struggling-network-admin-wannabe 

--- Mark <[EMAIL PROTECTED]> wrote:
> Y'know, this is a little bit late, and I certainly
> haven't followed the whole 
> thread, but as an experienced sysadmin, my first
> question is why do you 
> *need* to put the file in every user's home
> directory? Is it something that's 
> going to be run at login, or is it something that
> everyone will be editing 
> individually, or what?
> 
> Certainly, if it's the latter, you could actually
> send it out as an email, 
> with instructions to save. If the former, it should
> *definitely* be effected 
> through /etc/profile, which everyone sources every
> time they log in, 
> regardless of shell.
> 
>   mark roth
>  unemployed in Chicago
> 
> -- 
> Finally, a perfect understanding:
>George W. Bush is Eddie Haskell
> 
> 
> 
> -- 
> redhat-list mailing list
> unsubscribe
>
mailto:[EMAIL PROTECTED]?subject=unsubscribe
>
https://listman.redhat.com/mailman/listinfo/redhat-list


__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



Re: how to automatically put files on all /home/user directories

2002-09-02 Thread smoke

hi!

im a newbie linux user struggling to keep up with my
bosses orders!lol! this list has been a great help!
thanks so much for your responses regarding the home
folders...

ps
i was quite overwhelmed by the line with "for in ( ls
%usr) lol! wow! 

this one impressed me too!
> > Actually, you could "touch /home/*/filename".


cool!



__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



Re: how to automatically put files on all /home/user directories

2002-09-02 Thread smoke

thanks,

i can use that too! but i have another 500+ existing
users, and it may take a bit of time to use "touch"
for every /home/user directory... is there a way to do
that? thank you! :)


--- Chris Mason <[EMAIL PROTECTED]> wrote:
> put it in /etc/skel - I think
> Only works when you crreate the user.
> 
> On Mon, 2002-09-02 at 20:11, smoke wrote:
> > hi,
> > 
> > how do i put the same file on all the user's home
> > directories.
> > 
> > 
> > 
> > thanks
> > 
> > __
> > Do You Yahoo!?
> > Yahoo! Finance - Get real-time stock quotes
> > http://finance.yahoo.com
> > 
> > 
> > 
> > -- 
> > redhat-list mailing list
> > unsubscribe
>
mailto:[EMAIL PROTECTED]?subject=unsubscribe
> >
>
https://listman.redhat.com/mailman/listinfo/redhat-list
> 
> 
> 
> 
> -- 
> redhat-list mailing list
> unsubscribe
>
mailto:[EMAIL PROTECTED]?subject=unsubscribe
>
https://listman.redhat.com/mailman/listinfo/redhat-list


__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



how to automatically put files on all /home/user directories

2002-09-02 Thread smoke

hi,

how do i put the same file on all the user's home
directories.



thanks

__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list