Hi everyone!
I'm trying to ftp a compressed file without uncompressing it first. This is what i tried, which works fine with export/import Oracle utilities:
mknod ftp_pipe3 p
uncompress < export_248.log.Z > ftp_pipe3 &
set -x
ftp -ni <<EOF
open 172.27.x.x
user oracle Oracle
bin
put ftp_pipe3 export_248.log.Z
close
bye
EOF
But doesn't work, error is:
$./uncompress_and_ftp.sh
+ ftp -ni
+ 0< /tmp/sh233526.2
./ftp_pipe3: not a plain file.
Any idea?
I'm trying to ftp a compressed file without uncompressing it first. This is what i tried, which works fine with export/import Oracle utilities:
mknod ftp_pipe3 p
uncompress < export_248.log.Z > ftp_pipe3 &
set -x
ftp -ni <<EOF
open 172.27.x.x
user oracle Oracle
bin
put ftp_pipe3 export_248.log.Z
close
bye
EOF
But doesn't work, error is:
$./uncompress_and_ftp.sh
+ ftp -ni
+ 0< /tmp/sh233526.2
./ftp_pipe3: not a plain file.
Any idea?