Python method mkfifo() create a FIFO named path with a numeric mode. The default mode is 0666 (octal). The current umask value is first masked out.
Following is the syntax for mkfifo() method:
os.mkfifo(path[, mode])
This method does not return any value.
Example
The following example shows the usage of mkfifo() method.
# !/usr/bin/python import os, sys # Path to be created path = "/tmp/hourly" os.mkfifo( path, 0644 ) print "Path is created"
When we run the above program, it produces the following result:
Path is created
Here at Intellinuts, we have created a complete Python tutorial for Beginners to get started in Python.