Grokbase
x

Re: Re: kickstart post section

View PostFlat  Thread  Threaded | < Prev - Next >
Alfred von Campe Re: [CentOS] Re: kickstart post section
| +1 vote
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
> I tried the above suggestion and it did not have the desired effect.
> Everything gets logged to log file. I was hoping for a way to log
> to the file and also still see it on the screen also.

Have you tried something like this:

%post
(
do your stuff here
) 2>&1 | tee post-install.log



_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos

Thread : kickstart post section
1)
Jerry Geis Is there a way in the %post section of install to continue to have the VT3 logging but also log...
2)
nate Kickstart in RHEL5/CentOS 5 you can do this %post do your stuff here )...
3)
Jerry Geis Nate, I tried the above suggestion and it did not have the desired effect. Everything gets logged...
4)
Alfred von Campe Have you tried something like this: %post do your stuff here ) 2>&1 | tee post-install.log...
5)
nate As another poster noted you can use tee, which should do the job. For my systems I have the server...
6)
Jerry Geis It looks like this: %post do your stuff here ) 2>&1 | tee /root/post-install.log works except for 1...
spacer
View PostFlat  Thread  Threaded | < Prev - Next >
Home > Groups > CentOS > kickstart post section (6 posts) > View Post