Re: [Tutor] Test If File System is mounted in Linux

2006-03-18 Thread Pawel Kraszewski
Dnia piątek, 17 marca 2006 19:22, Bill Campbell napisał: If you're sure it's a Linux system, fine. Like /etc/mtab, this isn't portable. Looking at some of the systems we have here: Fortezza mentioned it the way I assumed he has Linux: If there a semi-standard way to test if a file system

[Tutor] Test If File System is mounted in Linux

2006-03-17 Thread fortezza-pyt
If there a semi-standard way to test if a file system has been mounted or not using Python? In the Linux command line, I can type mount and see all mounted file system, and then see if the one I am looking for is in the list. While I could replicate this with Python, I am curious if there is an

Re: [Tutor] Test If File System is mounted in Linux

2006-03-17 Thread Noufal Ibrahim
On Fri, March 17, 2006 1:06 pm, fortezza-pyt wrote: If there a semi-standard way to test if a file system has been mounted or not using Python? In the Linux command line, I can type mount and see all mounted file system, and then see if the one I am looking for is in the list. While I could

Re: [Tutor] Test If File System is mounted in Linux

2006-03-17 Thread Michael Lange
On Fri, 17 Mar 2006 00:36:35 -0700 fortezza-pyt [EMAIL PROTECTED] wrote: If there a semi-standard way to test if a file system has been mounted or not using Python? In the Linux command line, I can type mount and see all mounted file system, and then see if the one I am looking for is in

Re: [Tutor] Test If File System is mounted in Linux

2006-03-17 Thread Bill Campbell
On Fri, Mar 17, 2006, Michael Lange wrote: On Fri, 17 Mar 2006 00:36:35 -0700 fortezza-pyt [EMAIL PROTECTED] wrote: If there a semi-standard way to test if a file system has been mounted or not using Python? In the Linux command line, I can type mount and see all mounted file system, and

Re: [Tutor] Test If File System is mounted in Linux

2006-03-17 Thread Adam
On 17/03/06, Bill Campbell [EMAIL PROTECTED] wrote: On Fri, Mar 17, 2006, Michael Lange wrote: On Fri, 17 Mar 2006 00:36:35 -0700 fortezza-pyt [EMAIL PROTECTED] wrote: If there a semi-standard way to test if a file system has been mounted or not using Python? In the Linux command line, I

Re: [Tutor] Test If File System is mounted in Linux

2006-03-17 Thread Pawel Kraszewski
Dnia piątek, 17 marca 2006 18:41, Adam napisał: The more general problem is to get a list of mounted file systems. How about just reading the mtab? That's usually /etc/mtab it should be readable as a user and it means you don't have to rely on any other programs. Or always-up-to-date user

Re: [Tutor] Test If File System is mounted in Linux

2006-03-17 Thread Bill Campbell
On Fri, Mar 17, 2006, Adam wrote: On 17/03/06, Bill Campbell [EMAIL PROTECTED] wrote: On Fri, Mar 17, 2006, Michael Lange wrote: On Fri, 17 Mar 2006 00:36:35 -0700 fortezza-pyt [EMAIL PROTECTED] wrote: If there a semi-standard way to test if a file system has been mounted or not using

Re: [Tutor] Test If File System is mounted in Linux

2006-03-17 Thread Bill Campbell
On Fri, Mar 17, 2006, Pawel Kraszewski wrote: Dnia piątek, 17 marca 2006 18:41, Adam napisał: The more general problem is to get a list of mounted file systems. How about just reading the mtab? That's usually /etc/mtab it should be readable as a user and it means you don't have to rely on