Questions tagged [mktemp]

20 questions
0
votes
2 answers

Error with Bash Script to create a Temp directory and copy some files

I am trying to create a Temp directory, copy some file into it, do some processing, and delete the directory. So far, I have: #!/usr/bin/env bash __tmpdir="mktemp -d /Users/Riwaz/support.XXXXXXXXXX" #Create temp directory; store address cp…
Riwaz Poudyal
  • 855
  • 1
  • 8
  • 15
0
votes
0 answers

ffmpeg build from source fails in docker container?

I'm trying to make some changes to the ffmpeg source code (yes, I'm a masochist), and to start I booted an Arch Linux docker container, installed the requirements, downloaded ffmpeg source code, and tried to compile, but I'm getting some extremely…
John Allard
  • 3,564
  • 5
  • 23
  • 42
0
votes
0 answers

unable to mktemp: Value too large for defined data type

I am unable to create a temp file using mktemp. mktemp /tmp/abc.XXXX Output obtained: mktemp: cannot create temp file /tmp/abc.D30575: Value too large for defined data type What could be the issue? Please guide.
Kanishka Dutta
  • 35
  • 1
  • 2
  • 9
-1
votes
1 answer

Difference between mkdir and mktemp within a script

When I use mkdir to create a directory named WORKDIR in the cwd, the following way works perfectly fine: #!/bin/bash SUBDIR=$(pwd) export BASISDIR="/home/Basis_Sets" for i in *.ZMAT; do [ -f "$i" ] || break BASENAME=$(basename $i .ZMAT) …
Cdc95
  • 21
  • 5
-4
votes
1 answer

create a temporary file with unpredictable name

When we create temporary files using tmpfile, in most cases we cannot easily predict the name. Coverity scan also complains about its vulnerability. So is there any function to create a temporary file which cannot be guessed easily?
RAFI KC
  • 421
  • 4
  • 8
1
2