There is some script that takes time to archive files,
print 'Название файла, который архивируем: ' name_file = gets.chomp print 'Название архива: ' name_arch = gets.chomp #system('cd ') for i in 1..3 do system('time -o time.log tar -zcvf '+name_arch+'.tar.gz '+name_file) f = File.open("time.log", 'r') while line = f.gets if line.grep /^(real + \d)/ File.open('table.log', 'a') puts line end f.close end end But at startup, after specifying the name of the archive and file, tar says:
Название файла, который архивируем: *.klk Название архива: q tar: *.klk: Функция stat завершилась с ошибкой: Нет такого файла или каталога tar: Завершение работы с состоянием неисправности из-за возникших ошибок However, when writing the same command with the same parameters, it makes everything go smoothly. Actually, why does the archiver behave this way? PS script is in the same folder with the file