cron mails to root - Forums Linux |
- cron mails to root
- how do arithmetic operations with floating point no in shell script
- FTP question
- Question on timezone
- MySql remote connectiion / access host problem.
- Matrox G550 with DualHead under Fedora Core 2
- missing .so's
- usermod
- Partition mix up
- unable to mount cdrom (busy)
- triple boot Windows XP and linux
- Finding a modem with COM/IRQ jumpers
- Help: HomePNA and Knoppix
Posted: 16 Jul 2004 07:59 AM PDT -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 NotDashEscaped: You need GnuPG to verify this message In comp.os.linux.setup g.un. <hu> suggested: Ah well and what if everyone thinks like that, do you expect the few regulars here to be able to answer the massive amount of questions? Already outdated, try Fedora if you like RH or another recent distro. Wouldn't it be better to fix your broken system then simply dropping those mails? If you post one of those mails, we could have a look and perhaps someone knows what to do, if you can't figure it out. -- Michael Heiming (GPG-Key ID: 0xEDD27B94) mail: echo qr | perl -pe 'y/a-z/n-za-m/' -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFA+BJhAkPEju3Se5QRAtGSAKCIuQystDFl42TQ3a3yZ5 sUHFfUEACeM59b 9w44lrfWwCm5p8gnaPYZPzw= =WIwU -----END PGP SIGNATURE----- |
how do arithmetic operations with floating point no in shell script Posted: 16 Jul 2004 05:03 AM PDT On 2004-07-16, karthikeyan wrote: There's no need to use an external program for integer arithmeitc; it's built into the bash shell: echo $(( 33 * 2 + 3 )) bc does floating point. I usually use awk: calc() { n=`awk 'BEGIN {print '"$*"'}'` } calc '(123 + 321) * 1.5' calc 23 \* 12 One can also write shell functions for arithmetic using decimal fractions, e.g.: fpmul() { places= tot=1 shift=0 qm= neg= for fpn do case $fpn in -*) [ "$neg" = '-' ] && neg= || neg='-' fpn=${fpn#-} ;; esac case $fpn in .*) int= dec=${fpn#?} tot=$(( $tot * $dec )) places=$places$dec ;; *.*) dec=${fpn#*.} int=${fpn%.*} places=$places$dec tot=$(( $tot * $int$dec )) ;; *) tot=$(( $tot * $fpn ));; esac done while [ ${#qm} -lt ${#places} ] do qm=$qm'?' done while [ ${#qm} -gt ${#tot} ] do tot=0$tot done int=${tot%$qm} dec=${tot#$int} _FPMUL=$neg$int${dec:+.$dec} [ ${SILENT_FUNCS:-0} = 1 ] || echo "${_FPMUL}" } fpmul 2.5 4 fpmul 1.2 3.4 5.6 -- Chris F.A. Johnson http://cfaj.freeshell.org/shell ================================================== ================= My code (if any) in this post is copyright 2004, Chris F.A. Johnson and may be copied under the terms of the GNU General Public License |
Posted: 16 Jul 2004 02:48 AM PDT -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 NotDashEscaped: You need GnuPG to verify this message In comp.os.linux.setup pcchong <com.sg> suggested: Don't know WS_FTP, presuming you are looking for a GUI ftp client, AFAIR the native KDE file manager (Konqueror) supports ftp among a bunch of other protocols directly, try putting "ftp://ftpserver.tld" in the location bar, save some bookmarks if it works for you. Good luck -- Michael Heiming (GPG-Key ID: 0xEDD27B94) mail: echo qr | perl -pe 'y/a-z/n-za-m/' -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFA98iPAkPEju3Se5QRApzxAJ0W5sCmyr0C+ffAExZ0q6 tU30F0/gCeL+jb I045RbJn/J612OAcn/ePFBc= =EoAZ -----END PGP SIGNATURE----- |
Posted: 14 Jul 2004 07:51 AM PDT It happens to both KDE and GNOME On Wed, 14 Jul 2004 21:43:56 +0000, mjt wrote: |
MySql remote connectiion / access host problem. Posted: 14 Jul 2004 05:14 AM PDT Thanks Davide. Please ignore my post. Dataflame support has now told me their system stops remote access, this contradicts what they earlier told me which was remote access was ok. Thanks, Matthew Davide Bianchi wrote: |
Matrox G550 with DualHead under Fedora Core 2 Posted: 14 Jul 2004 03:44 AM PDT On 2004-07-14, Steve Houle <com> wrote: Get the driver and the Powerdesk utility from Matrox. Then read the Release Notes for instructions. -- Juha Siltala http://www.edu.helsinki.fi/activity/people/jsiltala/ |
Posted: 13 Jul 2004 11:19 PM PDT -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 NotDashEscaped: You need GnuPG to verify this message In comp.os.linux.setup Jean-David Beyer <com> suggested: [..] [..] [..] Hi Jean-David! Yep. [..] Random guess, as the OP missed to give us info about the distro he's running, he's needs the compat-libstdc++-? package for Red Hat 7.3 backwards compatibility to get things working, perhaps one or another symlink and running 'ldconfig'. From my box: lrwxr-xr-x 1 root root 31 May 14 21:54 /usr/lib/libstdc++-libc6.2-2.so.3 -> libstdc++-3-libc6.2-2-2.10.0.so There are a few more of them: compat-libstdc++-7.3-2.96.128 compat-libstdc++-devel-7.3-2.96.128 compat-glibc-7.x-2.2.4.32.6 -- Michael Heiming (GPG-Key ID: 0xEDD27B94) mail: echo qr | perl -pe 'y/a-z/n-za-m/' -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFA9SfPAkPEju3Se5QRAgMNAKDV6sHTEHiGYIjSxycakk Fr/lizdgCgkQ8y M1l1IfLJiiUGQb9Zr0DD6Ag= =Q7fG -----END PGP SIGNATURE----- |
Posted: 13 Jul 2004 12:02 PM PDT -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 NotDashEscaped: You need GnuPG to verify this message In comp.os.linux.setup Lew Pitcher <com> suggested: [..] The sad thing about usermod.;( Yep, just use 'vigr'.;) -- Michael Heiming (GPG-Key ID: 0xEDD27B94) mail: echo qr | perl -pe 'y/a-z/n-za-m/' -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFA9GlPAkPEju3Se5QRAk+xAJ4pWeUfoKAAOtq7aKfsTP Wpw6PMEwCgp/Xd 6ViEJFXaG/HINahb1Wy7nLQ= =60Qc -----END PGP SIGNATURE----- |
Posted: 13 Jul 2004 01:31 AM PDT Abdullah Ramazanoglu wrote: Thanks - afer reading up it was enough to fix the problems. J |
Posted: 13 Jul 2004 12:37 AM PDT faeychild wrote: Maybe you can find a *fam file in the /etc/xinetd.d/ directory. Add (or change) the option service fam { ... disable = yes } and restart the xinetd program. (Xinetd is the successor of inetd) |
triple boot Windows XP and linux Posted: 12 Jul 2004 01:51 PM PDT TCMa wrote: .... that is correct ! .. -- << http://michaeljtobler.homelinux.com/ >> "Oh what wouldn't I give to be spat at in the face..." -- a prisoner in "Life of Brian" |
Finding a modem with COM/IRQ jumpers Posted: 12 Jul 2004 10:10 AM PDT Great stuff, everyone. Thank you! I am glad to hear about the USR modem, which I may try, and the external serial modem option. I am especially glad to get the advice on building my own driver, which I have wanted to try for a while, now. One of the cooler things I have always admired about the Linux community is their willingness to write software to fit their situation. I can't imagine needing to do the same on a Winbox! I appreciate your help, folks. |
Posted: 12 Jul 2004 04:24 AM PDT I am log on as root when insmod: <rootttyp1[iL_hybrid]# insmod -f il.o> I'm also running the files off a USB key. It's the following lines I don't understand: <il.o: init_module: No such device Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.> |
You are subscribed to email updates from TextNData Forums - Linux To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google Inc., 20 West Kinzie, Chicago IL USA 60610 |