OK I can do that; pardon my ignorance--I don't usually write scripts,
although I can follow directions :-)
Here's what happened:
$ tr -d "\r" <mailfile >hws
$ chmod a+x hws
Script started on Tue Aug 8 07:31:08 2000
[rks@localhost rks]$ ./hws
#include <iostream.h>
int main(void){ cout<<"Hello World"<<endl; }
hw.cxx:1: iostream.h: No such file or directory
./hws: ./hw: No such file or directory
ldd: ./hw: No such file or directory
[rks@localhost rks]$ exit
exit
Script done on Tue Aug 8 07:31:20 2000
Wow! I've never run a script like this before.
Now I can see what you often do with the scripts.
I actually went into GUI to do this, but I didn't have
to, did I? Wow, that's terrific.
So does this tell you anything?
* [EMAIL PROTECTED] <[EMAIL PROTECTED]> [000808 07:16]:
> I thought I sent you a script that showed how. Never mind. Just cut
> this little script out of the mail, call it mailfile, fromdos it just in
> case:
> tr -d "\r" <mailfile >hws
>
> make it executable
>
> chmod a+x hws
>
> and run it.
>
> script blog
> ./hws
> exit
>
> in file blog you will have a record of what the script did.
>
> #!/bin/sh
> cat >hw.cxx <<hwend
> #include <iostream.h>
> int main(void){ cout<<"Hello World"<<endl; }
> hwend
> cat hw.cxx
> g++ -o hw hw.cxx
> ./hw
> ldd hw
> exit
>
> > # ldd /usr/lib/libstdc++-3-libc6.1-2-2.10.0.so
> > libm.so.6 => /lib/libm.so.6 (0x4004e000)
> > libc.so.6 => /lib/libc.so.6 (0x4006a000)
> > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
> >
> That looks very encouraging. I wonder what could be wrong?
> > --
> > Running Redhat 6.0 with some upgraded packages.
> >
> > Richard Spencer "Why Not" is a slogan
> > Sao Paulo, Brazil for an interesting life.
> > [EMAIL PROTECTED] -- Mason Cooley
> >
> Lawson
>
>
> A stitch in time saves embarassment. - Proberbs of Hell revisited
>
>
>
>
> ________________________________________________________________
> YOU'RE PAYING TOO MUCH FOR THE INTERNET!
> Juno now offers FREE Internet Access!
> Try it today - there's no risk! For your FREE software, visit:
> http://dl.www.juno.com/get/tagj.
---cut here---
--
Running Redhat 6.0 with some upgraded packages.
Richard Spencer "Why Not" is a slogan
Sao Paulo, Brazil for an interesting life.
[EMAIL PROTECTED] -- Mason Cooley
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs