Linux-Misc Digest #210, Volume #25               Sun, 23 Jul 00 04:13:02 EDT

Contents:
  Re: Startup questions (Harlan Grove)
  Re: Creating Win32 self-extracting zip files? (fred smith)
  Re: Terminal is not fully functional ??? (fred smith)

----------------------------------------------------------------------------

From: Harlan Grove <[EMAIL PROTECTED]>
Subject: Re: Startup questions
Date: Sun, 23 Jul 2000 06:58:06 GMT

In article <htve5.191$[EMAIL PROTECTED]>,
  "Micromans" <[EMAIL PROTECTED]> wrote:
>1) I have Linux RedHat 6.0. I am using /etc/rc.d/rc.local to put
>startup programs. I want a pause in the script because I first connect
>to my ISP via PPPD, then I want to wait about 15 seconds for the
>connection to be made, and after that I want my squid caching-proxy
>server to start. How can I put a 15 second pause in the script?

sleep 15

but there may be a way to use ifconfig to ensure the connection was
made. Do you want to keep trying to establish the connection if it
fails on the first attempt?


>2) What kind of script is rc.local? Is there a name for it?

Isn't the first line in this file  #!/bin/sh  ?

If so, it's interpretted by /bin/sh, which is usually symlinked to bash.


>3) What does the following code mean, and can someone suggest a
>reference for this kind of script?
>
>    ie: if [ -f /usr/local/squid/bin/squid ] ; then
>            echo -n 'Squid'
>            (/usr/local/squid/bin/squid &)
>        fi

If /usr/local/squid/bin/squid is a file, then run it asynchronously in
a separate shell.

If the online manual and other documentation for bash is inadequate for
your needs, O'Reilly has a book 'Learning the bash Shell' (ISBN 1-56592-
347-2) that might suffice. Check out amazon for reader comments.


Sent via Deja.com http://www.deja.com/
Before you buy.

------------------------------

From: fred smith <[EMAIL PROTECTED]>
Subject: Re: Creating Win32 self-extracting zip files?
Date: Sat, 22 Jul 2000 20:34:56 GMT

Grant Edwards <[EMAIL PROTECTED]> wrote:
: I need to create a self-extracting zip file to give to Win32
: users.  I know it's long odds, but does anybody know of a way
: to do this under Linux?  The info-zip "zip" program doesn't do
: this -- though I think it may be able to manipulate files within
: an existing self-extracting zip archive...

If you have the INFO-zip 'zip' program as compiled for Win32, I believe
it'll contain the right 'stub' program for making win32 self-extracting
zip files. All this 'stub' is, is a small unzipper, as a .exe, which
you concatenate with the zip file you want to be self-extracting.

The Linux/Unix version does the same, you create a self-extracting zip
file by doing:

        cat unzipsfx foo.zip > foo-selfexe

so that when you've done this, 'foo-selfexe' is a Linux self-extracting
zip file.

do the same on Win32:

        copy unzipsfx.exe /b + foo.zip /b foo-selfexe.exe

(I may not have the copy command's syntax exactly right here, check
out "copy /?" for details).

If you can do that, then you can take the unzipsfx.exe file over to Linux,
create a zip file there, then do:

        cat unzipsfx.exe foo.zip > foo-selfexe-win32.exe

and voila!

Fred
-- 
---- Fred Smith -- [EMAIL PROTECTED] ----------------------------
  "For him who is able to keep you from falling and to present you before his 
 glorious presence without fault and with great joy--to the only God our Savior
 be glory, majesty, power and authority, through Jesus Christ our Lord, before
                     all ages, now and forevermore! Amen."
============================= Jude 1:24,25 (niv) =============================

------------------------------

From: fred smith <[EMAIL PROTECTED]>
Subject: Re: Terminal is not fully functional ???
Date: Sat, 22 Jul 2000 20:39:08 GMT

S�bastien Cottalorda <[EMAIL PROTECTED]> wrote:
: The message writen above is the message I get each time  I try to see a
: man page or when i try to "vi" a file :
: --> WARNING Terminal is not fully functional

: When I "vi" a file, I cannot do it.
: but concerning the man pages, after pressing <RETURN>, I manage to see
: something.

: Any help will be greatly apreciate.

: S�bastien

That just means that the type of terminal you've told your system
you're using does not possess enough features to allow the program
to run.

If you're running on a Linux virtual console (text mode) you should
be using TERM=linux. At a shell prompt, type:

        echo $TERM

to see what it's set to.

In a terminal session under X, what you tell it will depend on what
kind of term program you're using,... if you're in an 'xterm' then
you'd want it to know you're using an xterm, and "echo $TERM" should
return 'xterm'. If not, then you've got something set wrong.

Another possibility is that your system's terminfo database is somehow
messed up, or inaccessible, or not installed in the right place.

Fred


-- 
---- Fred Smith -- [EMAIL PROTECTED] ----------------------------
                    The Lord detests the way of the wicked 
                  but he loves those who pursue righteousness.
============================= Proverbs 15:9 (niv) =============================

------------------------------


** FOR YOUR REFERENCE **

The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:

    Internet: [EMAIL PROTECTED]

You can send mail to the entire list (and comp.os.linux.misc) via:

    Internet: [EMAIL PROTECTED]

Linux may be obtained via one of these FTP sites:
    ftp.funet.fi                                pub/Linux
    tsx-11.mit.edu                              pub/linux
    sunsite.unc.edu                             pub/Linux

End of Linux-Misc Digest
******************************

Reply via email to