[SLUG] Cron Not Running Scripts

2003-11-02 Thread education
Hi Sluggers:

For some reason if I have cron setup like this the script does not do
anything:

hh mm * * * /usr/bin/perl /path_to_script/scriptname.pl  /dev/null 21

When I remove the  /dev/null 21 cron finally executes what I want the
script to do.

Any clues ??

Cheers.


-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


[SLUG] Removing Toolbars etc.. from browser window

2003-11-02 Thread education
Hi Sluggers:

Objective:
When someone clicks on a link, I want a new browser window to open with no
toolbars, menubar. I want scrollbars. I know Javascript has window.open()
to achieve what I want. However the new window opens up from a a tag
from a script. I tried window.open() in the a tag but it did not work. I
have also tried this in the .html file I want to open up in the new
resized browser window with no menu and toolbars.

I have this sample Javascript in the head tag

script
function resizeWindow(width,height){
if (document.layers) {
// resizeTo sets inner size, so use this instead
window.outerWidth = width;
window.outerHeight = height;
} else window.resizeTo(width,height);
}
/script

Now in my body tag I have added this

body  onload=resizeWindow(300,300);

This of course just resizes the window. But it still leaves the toolbars
and menu bars. Any ideas on how I can extend the above script with a
window.open() or something similar would be greatly appreciated.

Cheers.


-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


RE: [SLUG] Anyone used Perl's Filter package !!

2003-11-02 Thread education
Hi Angus:

My replies under [Louis].

 -Original Message-
 From: Angus Lees [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, 28 October 2003 20:37
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: Re: [SLUG] Anyone used Perl's Filter package !!


 At Mon, 27 Oct 2003 13:17:11 +1100 (EST), education  wrote:
  I download the package Filter-1.26 from CPAN. I'm having problems
  understanding how to use this package to get Perl code to
 go through
  the filter before compilation.

  Also does this method clearly prevents anyone from seeing
 the source
  code of a Perl script ?

 Unless it uses some form of encryption, then all you've done
 is obscured the code - anyone who can use the same filter can
 read the source code.

 See Embperl for an example of a module which *does* do
 encrypted source code - you compile a private key into the
 embperl module and then use it to encrypt source code files
 (see crypto/README in Embperl source).


[Louis] This is not installed on my server. I will get it installed to
play with. However I have just read about it from CPAN from the reference
you gave. I have some questions about this.
Here goes:

Q1. This may sound basic. I suppose if I encrypt the file, then if I run
it on another server, does it just needs EmbPerl (same version or any
version) installed ?

I read from the README that the epcrypto_config.h file needs to be
edited to enable encryption and choose the algorithm to use.

Q2. Does the setup for this part on the other server have to be the same ?
i.e for the other server to decrypt the binary and run the perl script the
header file has to be edited and recompiled to use the exact algorithm ?
Can't EmbPerl detect what algorithm to use when decrypting ?

Q3. When encrypting the file from the epcrypto program, can I name the
destination filename as a .pl script ?

Q4. As this is a Perl script I am trying to encrypt, does the path to perl
have to be in the source before encryption ? Will the script work if I add
the path to perl manually in the destination filename ?

Q5. Finally I suppose all I distribute is the destination encrypted files,
and DO NOT give out the source files from the crypto directory ?

Once I get it installed I will play with it a little bit. If I need more
help I'll post again.

Cheers.


-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] linux help for educator

2003-11-02 Thread Ken Caldwell
quote who=Alper Ciftci

 Hi, 
 
 I am a Maths/Physics teacher at Sule College and I want to install Linux on
 my laptop. 
 
 I got about 80 GB free disk space.
 
  
 
 My purpose is to run mathematical  scientific software free. Of course
 office programs as well, but teaching software is my preference.
 
  
 
 I used redhat at uni about 5 years ago.
 
  
 
 But I do not know how to install. Currently XP is loaded and I want to keep
 it.
 
  
 
 At school we have cable modem, and at home I use iprimus dial up.
 
  
 
 I have a few questions:
 
 1.Which distribution will be the best for me 
 2.If I select any of the distributions can I install any linux
 application from the net? Or is there any restriction that an application
 will only work on redhat and not slackware etc. 
 3.Can I install multiple versions at the same time to test and
 evaluate which version is best for me? 
 4.If possible can I meet with anyone to do the installation process
 together? I have fast internet and a burner. Can download anything. 
Hi Alper,

Is computer support at Sule College provided by the same person that
looks after the IT infrastructure at the Sule College primary school at
Auburn?  The computers supplied to that school by Computerbank are
running Debian and the IT support person was familiarising himself with
this distribution.  This may be of interest in your choice.

cheers,

Ken

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] KPPP external modem unexpected disconnections forced by remote end.

2003-11-02 Thread DaZZa
On Fri, 31 Oct 2003, Brad Kowalczyk wrote:

 Hi Roger,

 Do you have a phone on the same line?

 I was suffering a similar problem with my dialup account (it was
 disconnecting after about 20 min all the time). I discovered that
 apparently some older touch-tone telephones can cause enough
 interference on the line to cause a disconection. After I removed my
 telephone from the double adapter I was using to split the phone line I
 had no problems.

This was actually very well known back in the days Before The Internet
[I.E. BBS days}.

The original series of Telstra's Touchphone 200 recharged its internal
memory battery from the phone line by - you guessed it - pulling a certain
voltage from the line at an interval of every 20 minutes - regardless of
the fact that the line was in use or not.

This wasn't generally a problem for voice calls - but for data calls, it
meant disconnection every time.

The solution was to unplug the T200 while making a data call.

Later versions have {the ones with the raised buttons as opposed to the
flat membrane type buttons}, supposedly, had the problem corrected.

DaZZa

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


[SLUG] OT Unused sealed QIC cartridges bound for the bin

2003-11-02 Thread Grant Street
 Hello 

We have about 15 BASF EXTRA 6150 Data cartridge (620 ft. density 12.500
ftpi) cartridges wrapped in plastic never been used looking for a new home.
Free if you pick them up from Rosebery. 

Contact me off list.
 
Grant
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


[SLUG] ftpd rpm u/g from source build: do I need 'ftpaccess' ?

2003-11-02 Thread lists
I have RH7.3, at the suggestion of this list, I installed ProFTPd instead
of default WuFTPd that came with RH73

however, when I 1st got the ProFTPD, I totally forgot (being a newbie)
that I was 'supposed to' use RPMs. Instead, I downloaded the source,
compiled, started using (no credit to me, credit to supplied docs)

that worked good.

now, however, I came across the updated ProFTPd packaged as an RPM.

when I tried to install the ProFTPD RPM, rpm complained about numerous
conficlts with WuFTPD files

I then RPM erased WuFTPD, then, rpm installed ProFTPD
this time, install succeeded.

so, now I have rpm-installed ProFTPd, and, it works:

Question: when 'rmp=erasing' Wu-FTPD, rpm created:


-rw---1 root root 1948 Aug  9 07:28 ftpaccess.rpmsave
-rw---1 root root   79 Jul 15 10:13 ftpusers.rpmsave

ftpusers got recreated:
-rw-r--r--1 root root  191 Nov  3 11:38 ftpusers

BUT, I no longer have 'ftpaccess'

do I need /etc/ftpaccess with ProFTPd, should I manually recrceate it from
ftpacess.rpmsave ?




-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


[SLUG] cron entry troubleshooting: missing libpath ?

2003-11-02 Thread voytek
I'm trying to setup a cron entry to generate a graph on daily basis, the
file executes OK on ssh command line, i then copied the file to
/etc/cron.daily/tide_daily

but, when cron runs it(as root), I get:

tide: error while loading shared libraries: libpng12.so.0: cannot open
shared object file: No such file or directory

===
this works OK:
# /etc/cron.daily/tide_daily
Indexing /usr/share/xtide/harmonics.tcd...

# ls -l /etc/cron.daily/tide_daily
-rwxr-xr-x1 root webmaste   82 Sep 16 07:05
/etc/cron.daily/tide_daily

so, when cron executes it, I'm missing libpath ? it seems ?
the needed file lives in
# cd /usr/local/lib
# ls -l
-rw-r--r--1 root root   212414 Aug  8 21:05 libpng12.a
lrwxrwxrwx1 root root   13 Aug  8 21:05 libpng12.so -
libpng12.so.0
lrwxrwxrwx1 root root   19 Aug  8 21:05 libpng12.so.0 -
libpng12.so.0.1.2.5
-rwxr-xr-x1 root root   196402 Aug  8 21:05 libpng12.so.0.1.2.5
lrwxrwxrwx1 root root   10 Aug  8 21:05 libpng.a -
libpng12.a
lrwxrwxrwx1 root root   11 Aug  8 21:05 libpng.so -
libpng.so.3
lrwxrwxrwx1 root root   17 Aug  8 21:05 libpng.so.3 -
libpng.so.3.1.2.5
-rwxr-xr-x1 root root   196402 Aug  8 21:05 libpng.so.3.1.2.5

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] cron entry troubleshooting: missing libpath ?

2003-11-02 Thread lists
 Check that the contents of file,
 /etc/ld.so.conf,
 includes
 /usr/local/lib

did NOT

 If not add that line and do a,
 #ldconfig

done, done

Oscar,
thanks, now I need to wait till 3 am.


-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


[SLUG] PDF to Latex or similar

2003-11-02 Thread Alan L Tyree
I've done a brief Google w/o success. Is there some reasonable way to
convert PDF to Latex or to any readable markup?

Thanks,
Alan
-- 
--
Alan L Tyree
http://www2.austlii.edu.au/~alan
Tel: +61 2 4782 2670
Mobile: +61 405 084 990
Fax: +61 2 4782 7092
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] Cron Not Running Scripts

2003-11-02 Thread education
 On Sun, 2003-11-02 at 18:28, [EMAIL PROTECTED] wrote:
 Hi Sluggers:

 For some reason if I have cron setup like this the script does not do
 anything:

 hh mm * * * /usr/bin/perl /path_to_script/scriptname.pl  /dev/null
 21

 There is a subtle difference with root crons.

 are you anacron or is your computer on full time?

[Louis] This is a web servers that always runs.

 When I remove the  /dev/null 21 cron finally executes what I want
 the script to do.

 What output did it give you?  Normally this will not affect the outcome
 like this.

[Louis] The script is suppose to update some files and also sends some
output to the display. I know that  /dev/null  21 will not display
anything to the screen. But after looking into it it also revealed that
the files that should be updated were not.

Removing it shows the display I have in the script and also updates the
files I wanted updated.

So does this mean there is something in the script that's doing this ?

Cheers.



 --
 Thanks
 KenF
 OpenOffice.org developer



-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


[SLUG] Martians

2003-11-02 Thread John Clarke
Hi all,

Since upgrading from dialup to adsl last week, I've been seeing this:

  dropbear kernel: martian source 150.101.124.189 from 127.0.0.1, on dev eth1
  dropbear kernel: ll header: 00:00:e2:14:a6:b6:00:90:1a:40:6c:d9:08:00

in /var/log/messages occasionally.  150.101.124.189 is my gateway's
address, eth1 is the network, and the dsl modem (dlink dsl-300+) is
150.101.124.190.

Does anyone have any idea what might be causing these packets?


Thanks,

John
-- 
whois [EMAIL PROTECTED]
GPG key id: 0xD59C360F
http://kirriwa.net/john/
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


[SLUG] Real lamo question about scripts

2003-11-02 Thread Kevin Saenz
Hi all,

I have a bash script where I create a tar.gz file I would 
grab current date and add it to the file name. Could anyone
please advise where I could look so I can develop my script
further?

-- 
Regards,

Kevin Saenz
 
Spinaweb
I.T consultants
 
Ph: 02 4620 5130
Fax: 02 4625 9243
Mobile: 0418455661
Web: http://www.spinaweb.com.au

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] Real lamo question about scripts

2003-11-02 Thread Brett Fenton
just include `date -I` as part of the file creation routine

ie something like:

tar cfz file.`date -I`.tgz /home

regards
brett
Kevin Saenz wrote:
Hi all,

I have a bash script where I create a tar.gz file I would 
grab current date and add it to the file name. Could anyone
please advise where I could look so I can develop my script
further?

--
Brett Fenton
General Manager
NetRegistry Pty Ltd
___
http://www.netregistry.com.au/

Tel: +61 2 96996099  |  Fax: +61 2 96996088
PO Box 270 Broadway  |  NSW 2007, Australia
Your Total Internet Business Services Provider
Trusted by 10,000s of Oz Businesses Since 1997


This email is from NetRegistry Pty Ltd. The contents of this message are 
commercial and in confidence to the intended addresseee.

The message may contain copyrighted and/or legally priviledged 
information. No person or entity other than the intended recipient may 
read, print or store this message, including any and all attached files.

The intended recipient may not forward this message to any third party 
without express written permission from NetRegistry Pty Ltd.
	

--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] Real lamo question about scripts

2003-11-02 Thread Peter Hardy
On Mon, 2003-11-03 at 16:48, Kevin Saenz wrote:
 I have a bash script where I create a tar.gz file I would 
 grab current date and add it to the file name. Could anyone
 please advise where I could look so I can develop my script
 further?

You need the date command.  Check the manpage to find out how to specify
the format.

An example script fragment would look like:
filename=`date +%Y%m%d`

tar zxcf backup-filename.tar.gz /stuff/to/be/backed/up/

Cheers,
-- 
Pete

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] Real lamo question about scripts

2003-11-02 Thread Peter Hardy
On Mon, 2003-11-03 at 16:59, Peter Hardy wrote:
 tar zxcf backup-filename.tar.gz /stuff/to/be/backed/up/

Er, tar zxvf backup-$filename.tar.gz /stuff/to/be/backed/up/.

I was in a rush trying to get in before Jan did, sorry. :-(

-- 
Pete

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug