The below bash commands are used to create a directory and the creating a logfile in the above created directory along with some text inserted in to that log file.
My question is, how can we execute the below two cmds in python.
mkdir -p /var/remediation_log
echo $timestamp "some text" >> /var/remediation_log/$date.text.log