On Sunday 04 January 2004 22:00, robin wrote:
>
> For those who think life is too short for vi, there is also kcron.
>
and Webmin
Anne
--
Registered Linux User No.293302
Have you visited http://twiki.mdklinuxfaq.org yet?
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.man
Paul wrote:
On 01/04/2004 08:32 PM, mike wrote:
I'll probably post back on the running the "cron" part but, I'll research
it a bit more before I panic. :-)
Your friends there will be:
man crontab
man 5 crontab
and perhaps also man cron
It is not difficult, just something you need to get used t
On 01/04/2004 08:32 PM, mike wrote:
I'll probably post back on the running the "cron" part but, I'll research
it a bit more before I panic. :-)
Your friends there will be:
man crontab
man 5 crontab
and perhaps also man cron
It is not difficult, just something you need to get used to.
"su" to
Paul wrote:
On 01/04/2004 07:30 PM, mike wrote:
I think I understand the function is to take the oldest which is the
first argument if it exists rename it to the second argument.
Yup.
So it cd's to my file directory and
sees if wireless_stat3.tar it would filetest 3 4 (rename file3.tar to
file
On 01/04/2004 07:30 PM, mike wrote:
I think I understand the function is to take the oldest which is the
first argument if it exists rename it to the second argument.
Yup.
So it cd's to my file directory and
sees if wireless_stat3.tar it would filetest 3 4 (rename file3.tar to
file4.tar) and
2 to
Paul wrote:
Hi Mike,
Your script to 'logrotate' the files could look like this:
#!/bin/sh
filetest()
{
if [ -f wireless_stat$1.tar ] ; then
mv -f wireless_stat$1.tar wireless_stat$2.tar
fi
}
cd /
filetest 4 5
filetest 3 4
filetest 2 3
filetest 1 2
The filetest function takes 2 arguments
Hi Mike,
Your script to 'logrotate' the files could look like this:
#!/bin/sh
filetest()
{
if [ -f wireless_stat$1.tar ] ; then
mv -f wireless_stat$1.tar wireless_stat$2.tar
fi
}
cd /
filetest 4 5
filetest 3 4
filetest 2 3
filetest 1 2
The filetest function takes 2 arguments, being the o
Greetings and Happy NewYear,
I would like to write a script to accomplish a task, and then run it at
regular
intervals (I'll start another thread for that). The thing is I know zero
about
programming and in process of learning.
I have a stand-alone firewall (mdk9.1) with no X installed, and a wi
MG wrote:
Hey Mark,
I was just using "./HW"
as in:
[mike@avatar mike]$ ./HW
What I gathered was if the script was in a directory, that was in my PATH, I
could just use the name of the script instead of the whole path.
I looked in my /home/mike/.bash_profile file and it said:
[mike@avatar mike]$
Thanks Chuck!
It works, I believe I understand now, thats why I got a
"No such file or directory"
it could not see it in the folder I made.
again appreciate the guidance.
Mike
On Wednesday 01 January 2003 04:54 pm, you wrote:
> Here's the rub, by type ./HW you are telling bash to run it in the
>
Here's the rub, by type ./HW you are telling bash to run it in the
current directory. Also, path's are NOT recursive, so when you put it
inside a second folder inside the ~/bin directory, it will not see it.
Put the HW script directly into your ~/bin directory, then then type
just HW (NOT ./HW)
Hey Mark,
I was just using "./HW"
as in:
[mike@avatar mike]$ ./HW
What I gathered was if the script was in a directory, that was in my PATH, I
could just use the name of the script instead of the whole path.
I looked in my /home/mike/.bash_profile file and it said:
[mike@avatar mike]$ cat .bash_p
MG wrote:
Hi all, This question is not really Mandrake specific although I am using
Mandrake8.2 (and like it alot!)...anyways trying to learn the bash shell.
I wrote a small script (the "Hello World" script) and named it "HW".
I did a "chmod 755" to it, so all could read and execute it.
I made a /
>> listen <010:atm1.7530>
>> listen <010:atm120.7080>
[...]
>> How I can extract of the second column since ':' to '.'
>> example:
>> <010:atm1.7530> atm1
>> <010:atm120.7080> atm120
>
>cat datafilename | gawk -F: '{ print $2 }' | gawk -F. '{ print $1 }'
> outfile
>
or
$ cut -f 2 -d : datafile|
On Thursday 05 April 2001 15:52, you wrote:
> Hi to all,
>
> If I have a file with the following data:
>
> listen <010:atm1.7530>
> listen <010:atm120.7080>
> listen <010:nac1.7506>
> listen <010:ist1.7508>
> listen <010:tar.7501>
> listen <010:nacpos.7510>
>
> How I can extract of the second colu
Hi to all,
If I have a file with the following data:
listen <010:atm1.7530>
listen <010:atm120.7080>
listen <010:nac1.7506>
listen <010:ist1.7508>
listen <010:tar.7501>
listen <010:nacpos.7510>
How I can extract of the second column since ':' to '.'
example:
<010:atm1.7530> atm1
<010:atm120.70
I have a little log analysis perl script that I am trying to run. When starting form a
terminal it works fine with the following in an executable script;
#! /bin/bash
echo "Mail Stats Log Analysis"
echo ""
su - root -c "DISPLAY=$DISPLAY; export DISPLAY; aterm -bg black -fg yellow -e perl
/usr/bi
17 matches
Mail list logo