SOLVED: Error: unrecognised option '-P' error/import.c/ImportImageCommand/1275
Posted: 2016-01-06T06:35:22-07:00
I have a script that takes screenshots of linux man pages as they show in the console
My true list of commands is quite long. Without \-P\ cat\ it wont display the man files. In its present form it does display each man file but wont take the screen shot of each.
Error: unrecognised option '-P' error/import.c/ImportImageCommand/1275
Any idea how I should correct it - I have no clue.
Code: Select all
try(){
clear
timeout 0.2 $1
re=$?
echo trying $1>>log.txt
echo result is $re>>log.txt
if [ ! $re -eq 127 ]; then
sleep 0.2
import -window osboxes@osboxes:~/Downloads/Parser\ Project\Code/iteration\ 3 iter3/$1.png
echo $1 captured>>log.txt
fi
}
try man\ \-P\ cat\ AB
try man\ \-P\ cat\ ABRT\-ACTION\-ANALYZ
try man\ \-P\ cat\ ABRT\-ACTION\-ANALYZ
try man\ \-P\ cat\ ABRT\-ACTION\-ANALYZ
My true list of commands is quite long. Without \-P\ cat\ it wont display the man files. In its present form it does display each man file but wont take the screen shot of each.
Error: unrecognised option '-P' error/import.c/ImportImageCommand/1275
Any idea how I should correct it - I have no clue.