Hi,
I need a shell script to transfer a file from one server(unix box) to another server(windows box).
I have the details of the source and destination Ip's.
source path : /home/UNIX/server
filename:abc.txt
Destination folder: D:/UNIX/test
I am using AIX server.
Type of shell : korn
Hi,
I have written a small script to transfer a file from one unix server to other using scp command which is working fine. As I know with scp, if any file with the same name is already present on destination server, it would get overwritten without any notification to user. Could anyone help me getting a notification before file gets overwritten?
I need a script in which Files of One server will be copied to other folder of another server ONLY AND ONLY IF the file on SOURCE SERVER file doesn't exist on DESTINATION SERVER.
GM,
Can you pls help how to write a script to monitor different processes on different unix servers and send the output to a /tmp/report file, earlier my boss asked me to write a script to monitor just one process running on different servers and send the output to a file so I wrote this
exec < server.list
while read SERVER; do
ssh $SERVER "ps -ef | grep process_name" >> /tm
hi Experts...
I m trying to run a batch script in Windows server which executes unix commands on the unix server...the problem is i wnt the output in HTML format.so in my batch script i m giving the cmd like
ksh HC_Report.ksh>out.html...but it generates the HTML file in
windows server.i wnt the same cmd(ksh HC_Report.ksh>out.html) to be executed on unix server..s der any possibilitie
I have 3 AIX server namely - Server 1 , Server 2 and Server 3.
And have done SCP setup between Server 1 and Server 2 so that i dont have to give password when i transfer file from Server 1 to Server 2 by setting public key between the server.
Q1. If the unix password of the target server changes...do I need to do the
public key setup again between the server1 and server 2.
Q2.
Hi All,
when i ftp the file from windows machine to unix server the record count in the file is decreased by 1.
example: Say a text file has three lines in it and when you place this file in unix server from your local machine and run a below command
cat filename | wc -l
the output is showing as 2
but when you create a same file and same lines in unix machine directly it will show r
I am a Windows head and need to know how to do something on Mac's. I need a Unix script that will run on a Mac that writes to a file everyone who has a Account on that Mac.
So if there are 4 user accounts on the Mac the script would write to a file, (that lives on a server) that User1, User2, User3, User4 are on Machine MAC-LT-0035 (for example)
i have an existing script that is used to send an e-mail containing the alrams that appear on the server.
But i need to create a daily log file containing all the alarms that was send that day.
i tired to add at the and of the script a command, echo command but for some reason the file was never created can any one help plz :wall:
echo $x >> alarms_export_date.txt
echo $x >