You are here : python_2ososmkfifo

os.mkfifo() - os

             

The method mkfifo() create a FIFO named path with numeric mode. The default mode is 0666 (octal).The current umask value is first masked out.


  • path -- This is the path, which needs to be created.

  • mode -- This is the mode of the named path to be given.


Syntax


os.mkfifo(path[, mode])


Example


# !/usr/bin/python

import os, sys

# Path to be created
path = "/tmp/hourly"

os.mkfifo( path, 0644 )

print "Path is created"


Output / Return Value

When we run above program, it produces following result:


Path is created


Limitations


Alternatives / See Also


Reference