Re: [expert] bash script: interesting case
On Tue, 2003-11-11 at 07:55, Fajar Priyanto wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Dear all, > I have a dial-up server (it dials the ISP to provide internet connection for a > small LAN) on a remote location. > Now, I want to ssh to that server. Can I make somekind of script so that > everytime it dials the ISP, it will send it's assigned IP to my email? All > this time, everytime I want to ssh it, I call the local admin for the IP > address. What about using dynamic DNS? There are tons of places that do this for free. Personally I use no-ip.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] bash script: interesting case
Fajar Priyanto wrote: > If I haven't installed any mailserver on it, can I use mail command to > utilize the ISP's smtp instead? Hmm... not sure... the way it works is something like as follows: local mail command -> your local mail daemon -> isp mail daemon or isp mail command -> isp mail daemon -> your local mail daemon -> your local mail Also, you want your isp to mail you your IP address, right? There are two ways: 1. your isp mails it to your machine directly. both your machine and isp's need to have a mail server running 2. your isp mails it to your mailbox in www. isp needs a mail server running and you need a pop3/imap client to get your mail. I have postfix running in my dial-up machine and I can send mail to anyone with it. Artemio. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] bash script: interesting case
On September 1993 plus 3723 days Fajar Priyanto wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Dear all, > I have a dial-up server (it dials the ISP to provide internet connection for a > small LAN) on a remote location. > Now, I want to ssh to that server. Can I make somekind of script so that > everytime it dials the ISP, it will send it's assigned IP to my email? All > this time, everytime I want to ssh it, I call the local admin for the IP > address. Uhm...there's way easier ways to do this, like http://dtdns.com/ Don't suffer, just use a working method :) Vox -- Think of the Linux community as a niche economy isolated by its beliefs. Kind of like the Amish, except that our religion requires us to use _higher_ technology than everyone else. -- Donald B. Marti Jr. pgp0.pgp Description: PGP signature
Re: [expert] bash script: interesting case
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday 11 November 2003 03:31 pm, Artemio wrote: > #!/bin/bash > echo $YOUR_IP_ADDR | mail [EMAIL PROTECTED] > "mail" command usually needs /usr/sbin/sendmail to work. > > On my 9.2 machine I have /usr/sbin/sendmail soft-linked to > /etc/alternatives/mta so it makes postfix handle things as I guess. > Artemio. Thanks Artemio, If I haven't installed any mailserver on it, can I use mail command to utilize the ISP's smtp instead? - -- Fajar http://linux.arinet.org Linux mdk91.sistek.kom 2.4.21-0.13mdk GNU/Linux 15:48:38 up 8:13, 10 users, load average: 0.27, 0.56, 0.52 Quote of the day: Windows 99 has been released! (PC Magazine, April 2013) -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE/sKKwMai9kCFqACoRAhgNAJ9lGGxc2vpgqzZ11faCfwOZIAIm9ACfZvWg Y1mQlmku1RBK72KWTNocttw= =HUvP -END PGP SIGNATURE- Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] bash script: interesting case
Fajar Priyanto wrote: > Dear all, > I have a dial-up server (it dials the ISP to provide internet connection > for a small LAN) on a remote location. > Now, I want to ssh to that server. Can I make somekind of script so that > everytime it dials the ISP, it will send it's assigned IP to my email? All > this time, everytime I want to ssh it, I call the local admin for the IP > address. Well, you can ask the admin to set a on-connection script to just be like: #!/bin/bash echo $YOUR_IP_ADDR | mail [EMAIL PROTECTED] BTW, I have a dial-up connection too - I use KPPP that always shows my current IP address. > Errr... one more thing, it doesn't have qmail installed or neither sendmail > or any other mailserver package. Can bash'es mail command handle it? "mail" command usually needs /usr/sbin/sendmail to work. On my 9.2 machine I have /usr/sbin/sendmail soft-linked to /etc/alternatives/mta so it makes postfix handle things as I guess. Artemio. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
[expert] bash script: interesting case
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dear all, I have a dial-up server (it dials the ISP to provide internet connection for a small LAN) on a remote location. Now, I want to ssh to that server. Can I make somekind of script so that everytime it dials the ISP, it will send it's assigned IP to my email? All this time, everytime I want to ssh it, I call the local admin for the IP address. Errr... one more thing, it doesn't have qmail installed or neither sendmail or any other mailserver package. Can bash'es mail command handle it? Thanks. - -- Fajar http://linux.arinet.org Linux mdk91.sistek.kom 2.4.21-0.13mdk GNU/Linux 14:49:48 up 7:14, 10 users, load average: 0.25, 0.43, 0.25 Quote of the day: Win98 is called Win98 because 98% of all hardware components will NEVER have WDM-drivers -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE/sJXWMai9kCFqACoRAibuAJ0esiex0mnbEoBk13lxbB64R57y+gCfUB1V xbOyJyR/6tsUFzgLkKe6mdA= =PYHL -END PGP SIGNATURE- Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] bash script
Carl St-Jacques wrote: > > Hi, > > I need help... i have a file that i want to be copied in many folders. I > tried to use a bash script with no success. The folders where the file have > to be copied use a pattern based on a login name ex:(carlstj.macnt, > lcl.macnt, etc...). The idea is to use this script to copy the file to the > folders using a pattern matching /[a-zA-Z0-9].macnt/. thanks > > Carl St-Jacques for i in *.macnt; do cp $i/. done -- Steve Philp Network Administrator Advance Packaging Corp. [EMAIL PROTECTED]
[expert] bash script
Hi, I need help... i have a file that i want to be copied in many folders. I tried to use a bash script with no success. The folders where the file have to be copied use a pattern based on a login name ex:(carlstj.macnt, lcl.macnt, etc...). The idea is to use this script to copy the file to the folders using a pattern matching /[a-zA-Z0-9].macnt/. thanks Carl St-Jacques