Looks like the PATH set for your application is picking up the operating system tar command rather than the GNU version of tar, the latter may have been installed with your application, perhaps?
# type tar
type: Command not found.
# which tar
/usr/bin/tar
# tar --version
bsdtar 2.5.5 - libarchive 2.5.5
# echo $PATH
/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin
# updatedb
updatedb: Command not found.
With updatedb you probably mean the locate database?
Also
Code:
# locate tar | grep bin
gave a fairly lengthy output, you probably had something specific in mind?
Finally:
Code:
# whereis tar
tar: /usr/bin/tar /usr/share/man/man1/tar.1.gz /usr/src/usr.bin/tar
So it looks like by default you are using /usr/bin/tar and that is the tar command for BSD, the locate command should tell us where alternative tar commands are installed, whereis shows that no other tar commands are in the PATH.
Code:
$ locate tar | grep bin
Was an attempt to list only tar commands, not manpages, source code, etc.
Code:
$ locate tar | grep bin | grep "tar$"
Will hopefully produce a shorter list, it will exclude all the commands with "start" in them!
Below part of script, is working fine sometimes and gives error sometime.
I am doing float operations, checking if x > y.
##########CODE##########
THRESHOLD="1.25"
ratio=$( echo "scale=2; ${prev}/${current}" | bc )
if ; then
split_date=`echo ${line} | cut -d, -f2`
fi ... (9 Replies)
Hello
when i am giving a command apt-get install
I am getting error as below:
" apt-get: error while loading shared libraries: libapt-pkg-libc6.3-6.so.3.11: cannot open shared object file: No such file or directory "
can u suggest what to do.
https://www.unix.com/images/misc/progress.gif... (1 Reply)
Hi All,
i have an small issue...
echo " "
eval x=$@
export x=`echo $x`
echo $x
ssh user@ipadrss; cd /mbbv/home/;
cd /mbbv/home/orange/orange/
echo pwd
bash samplescript.sh $x
above is my script which will triger from server A and will connect to server B for some... (2 Replies)