when doing a ucopy function the error "ls -1" occurs when the correct unix command should be "ls -l" where is this command being generated from so I can fix it? This is in ICE.TEN V4.2 SO SORRY. thanks
ls -1 is actually correct. ls -1 does a listing all in one column with no details.
It appears that your version of unix ls doesn't support the -1 flag (you didn't say what version that was).
You could get a newer version of ls. The GNU ls command supports the -1 option.
You could also do something like this:
(assuming your ls is in /bin and you are logged in as root)
cd /bin
mv ls ls.bin
cat >ls
#!/bin/sh
if [ -z "$1" -o "$1" = "-1" ]
then
ls.bin
else
ls.bin $*
fi
after hitting enter after fi, hit control-d which writes out the new ls command chmod 755 ls
then test it out
ls -1
should work.
If you don't want to replace the ls command in /bin, create your ls command and change the users path to execute it first. (like put the ls script in /usr/local/bin and change the PATH variable on login to go to /usr/local/bin first then modify the script above slightly):
#!/bin/sh
if [ -z "$1" -o "$1" = "-1" ]
then
/bin/ls
else
/bin/ls $*
fi