On 10/16/06, Falcon, George <GFalcon@geico.com> wrote:
IIRC, SuSE doesn't include ksh as one of its standard offerings... which is one reason I went with Fedora for a recent project here. That was easier and quicker for me than installing ksh separately to SuSE.
As for the script, put an ampersand immediately after the greater than symbol.
I use " 2>&1 " to redirect both standard output and standard error to another file, as in
gzip /opt/Novadigm/gsd/scripts/backup/*.tar 2>&1 | tee -a /opt/Novadigm/gsd/log/$logfile
Yeah..this script seems to work. As I am still learning, I haven't come across the usage of ampersand. But that shall be soon. But thanks for the prior information. :) Also people have been telling me on this same thread that ksh does exist for SuSE and its also there in the CDs, but I gave it a shot and was not able to find them. I also have Slackware 10.2 installed on this machine and its got ksh. :)
-----Original Message----- From: Duff Mckagan [mailto:mckagan@gmail.com] Sent: Sunday, October 15, 2006 7:46 AM To: SLE Subject: SPAM: [SLE] Can't run this script
I am learning Shell Programming ..but the book I have is "Unix Shell Programming" and I know there are gonna be some differences, but in this case, Error Redirection is not working as wanted...
Here's the script.
i=a echo `i` 2>> err
Can somebody point out the error? ..if there's any ..lol
Also, I want to install "ksh" on SuSE. Just wanted to ask whether it is provided with the default installation..or is it present in the Cds..or do the Repositories offer them? I had added non-free reps in my SuSE Installation Sources, but I don't think I was able to find "ksh" in the list.
PS: I have also included Packman.
-- http://mckagan.googlepages.com
This email/fax message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution of this email/fax is prohibited. If you are not the intended recipient, please destroy all paper and electronic copies of the original message.