469,352 Members | 1,697 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,352 developers. It's quick & easy.

Program help

FX
can anybody write a code for a program that reads from a
/location/file & according to file contents, it execute script. e.g. if
file contains "mp" it runs media player.
I hope the code is small .. plz help me out!

Oct 2 '05 #1
3 1098
FX wrote:
can anybody write a code for a program that reads from a
/location/file & according to file contents, it execute script. e.g. if
file contains "mp" it runs media player.
I hope the code is small .. plz help me out!


You might be interested in the FileInfo class, defined and thoroughly
explained in _Dive Into Python_.

http://diveintopython.org/object_ori...ork/index.html
Oct 2 '05 #2
"FX" <ta*****@gmail.com> writes:
can anybody write a code for a program that reads from a
/location/file & according to file contents, it execute script. e.g. if
file contains "mp" it runs media player.
I hope the code is small .. plz help me out!


open <URL: http://www.mired.org/downloads/ > will use the extension to
figure out what to do. It's relatively small.

<mike
--
Mike Meyer <mw*@mired.org> http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
Oct 2 '05 #3
On Sun, 02 Oct 2005 12:57:29 -0700, FX wrote:
can anybody write a code for a program that reads from a
/location/file & according to file contents, it execute script. e.g. if
file contains "mp" it runs media player.
I hope the code is small .. plz help me out!


There are lots of people who can do that. Are you asking them to do it for
free, or are you looking to hire a Python developer to design, build and
test your program?

--
Steven.

Oct 2 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by anuradha.k.r | last post: by
2 posts views Thread by stanlo | last post: by
7 posts views Thread by tyler_durden | last post: by
1 post views Thread by Willing 2 Learn | last post: by
66 posts views Thread by genestarwing | last post: by
12 posts views Thread by asif929 | last post: by
21 posts views Thread by asif929 | last post: by
reply views Thread by ashishbathini | last post: by
9 posts views Thread by C#_Help_needed | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.