Following
#!/bin/bash
#
#
#
og_log_id=$1.log
function og_xml_upp_ftp {
ftp -n << EOF
open server
user (your user)" "
lcd (your directory)
bin
hash
put $og_log_id.gz
bye
EOF
rm (your directory)$og_log_id.gz
}
function og_logs_compess {
cp (your directory)$og_log_id /xtr/log_xfer
gzip /xtr/log_xfer/$og_log_id
}
case $1 in
'xml')
og_logs_compess
og_xml_upp_ftp
;;
'console')
og_logs_compess
og_xml_upp_ftp
;;
'both')
og_log_id=xml.log
og_logs_compess
og_xml_upp_ftp
og_log_id=console.log
og_logs_compess
og_xml_upp_ftp
;;
*)
echo "Usage: $0 (your text)"
exit 1
;;
esac
Subscribe to:
Post Comments (Atom)
solving error: Your current user or role does not have access to Kubernetes objects on this EKS cluster.
Trying to access EKS cluster with kubectl you might get an error similar to: Your current user or role does not have access to Kubernetes ob...
-
General Information PGPool can run on same server along with PostgreSQL DB or on stand alone server(recommended). In this article we wil...
-
login to mysql as a root: mysql -uroot -p end execute: mysql> show processlist; will show you list of processes running in MySQL a...
-
Following information is intended for bash shell only. The system variable TMOUT can be set to specify the amount of time the user is ina...
No comments:
Post a Comment