10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi there,
I have a problem in my script,
I need to check whether file exists in remote server or not,
if the file exists, then stop copy
else copy the file to the server..
my code is something like this
while read $server
do
if ssh $server "cd $directory_name; if ; then echo "Error:... (2 Replies)
Discussion started by: beezy
2 Replies
2. Shell Programming and Scripting
I am trying to delete old file in ftp server, after transferring new file successfully .
but here i am checking both the file available or not using ls command.
if both the file available means i need to get file_new and file_old file size as greater than zero.
but i am getting only for... (3 Replies)
Discussion started by: elango963
3 Replies
3. Shell Programming and Scripting
Hello everyone,
My problem is suppose I have one file name dipanjan.conf and the format of this file is as follows-
Name : Ddd Rrr Ooo
Email : abc@pqr.com
Mobile No : +8801911000000
Now, I want to create a new file using this one by shell script giving parameter (1)name, (2)email &... (4 Replies)
Discussion started by: sreejond
4 Replies
4. Shell Programming and Scripting
Hello, I would appreciate if any one can help me on this.
The below script start running at 12:30AM. Every 5 min, i go and check the remote site. If i see filewatch.txt over there, then i need to call another shell script and load the data into database. If i don't see that file, then i have to... (2 Replies)
Discussion started by: govindts
2 Replies
5. Shell Programming and Scripting
Hi,
i am in 272.22.22.32 server, and i want to check whether a file test.txt file exists in different server like 372.23.23.23 using shell script. can any one help me out. (1 Reply)
Discussion started by: KiranKumarKarre
1 Replies
6. Solaris
Hi Everyone!
This is what I need to do...
I am deploying some directories over to a windows server 2000/3 box from my solaris10 box and I need to make sure the directories exist.
The only form of connection I have to work with is SSH
Currently, my script deploys the directories over... (13 Replies)
Discussion started by: Keepcase
13 Replies
7. HP-UX
On HP-UX, in application, if the process id has been get with the getpid() and sotred in database, then other monitor process want to check it if the process is existed, are there any system function can do it? I do not want to use the shell script, because it should use popen function to excuted... (5 Replies)
Discussion started by: Frank2004
5 Replies
8. Solaris
Hey guys,
I was task to look at a couple DNS servers for a co worker, Now they are running Solaris 2.6 on some Ultra 10 systems. How can I check the kind of load these systems are taking, I know that I can look at the network size and how many zones these servers are SOA of, but I looking in a... (3 Replies)
Discussion started by: aojmoj
3 Replies
9. Solaris
I want to know the command line to removed the only secondary group existed from a user on an HP/SUN. :confused: (1 Reply)
Discussion started by: jquizon62
1 Replies
10. Shell Programming and Scripting
Hi All
Does anyone have any idea on how I can check in a script if a server is responind. I thought of using ping, however if there is no response from the server this command just hangs.
Regards
J (3 Replies)
Discussion started by: jhansrod
3 Replies