LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (http://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   a problem with a simple scripts in my %pre section of Centos kickstart vmware (http://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/a-problem-with-a-simple-scripts-in-my-pre-section-of-centos-kickstart-vmware-804557/)

the student 04-27-2010 11:35 AM

a problem with a simple scripts in my %pre section of Centos kickstart vmware
 
Please I'm trying to get a hang of how scripts are put together in the %pre section

I have writing a simple script but it doesn't seem to work. Can someone please tell me what I'm doing wrong?

Thanks in advance


%pre

#!/bin/sh
x=`/sbin/ifconfig`
Cat $x > mnt/source/root/internal.txt

kbp 04-27-2010 08:49 PM

Try '/mnt/source/root/internal.txt'


All times are GMT -5. The time now is 05:56 AM.