package available for python on redhat %pre script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I m trying to write a %pre script in python to backup my ssh keys
and cfengine keys in pre script and to put them back in place
in post script.
I am a total python novice as i use usually perl which is not
available.

i have written a script but i used a function that is not available
in the %pre section
it s the glob function.

the instruction is


nomfichiers = glob.glob("/proc/ide/h*")

Does someone know howi can do the same thing that will be
acceptable in %pre script?

Is the string library available too?

Thanks in advance for any help

P.S
I will publish my script on this list when it works :)


-- 
Eric Doutreleau
I.N.T			| Tel	: +33 (0) 160764687
9 rue Charles Fourier	| Fax	: +33 (0) 160764321
91011 Evry   France	| email	: Eric.Doutreleau@xxxxxxxxxxx





[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux