Thread error line number (11 answers)
Opened by linuxCowboy at 2014-12-17 21:57

hlubenow
 2014-12-18 01:03
#178791 #178791
User since
2009-02-22
875 Artikel
BenutzerIn
[default_avatar]
Vielleicht kann man das von bash angehen (wenn ich Dein Problem richtig verstanden habe):
Code: (dl )
1
2
3
4
5
6
7
8
9
#!/bin/bash

perl -e 'prnt "Hallo\n"'

if [ $? -ne 0 ]; then
ln="$LINENO"
let "ln -= 3"
echo -e "\nSomething went wrong in Perl-command, line $ln.\n"
fi

View full thread error line number