LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-12-2002, 04:02 PM   #1
rhelmich
LQ Newbie
 
Registered: Nov 2002
Location: Aransas Pass Texas
Distribution: Slackware
Posts: 1

Rep: Reputation: 0
Post Clearlog


Hello all, I am new to the forum and to Linux. I am trying to write a program to clear my logs I have the send text as

command clearlog*


the text of the program is ::

cat /dev/null > syslog
cat /dev/null > messages


This program is on another machine but I cannot seem to be able to get it to excute at the clearlog command. Am I missing somethin??

Should I use make ??

Thanks all
 
Old 11-19-2002, 08:50 PM   #2
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
Welcome to LQ, Rhelmich.

You have your program clearlog on 1 machine and you want it to run on another? Have you copied it over?

Since your program is basically a quick 'n' dirty shell script, there's no need to make anything! If I have got the jist of what you're saying correct, then all you should need to do is copy the program from one computer to another (mount the floppy, copy the file over, unmount the floppy, take disk to other computer, mount floppy, copy the file over, unmount floppy, get glass of lemonade ) and run! Or have I misunderstood?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off




All times are GMT -5. The time now is 10:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration