![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Check existence of a login | xavier054 | UNIX for Advanced & Expert Users | 10 | 03-06-2008 07:19 AM |
| Csh to check for existence of file | Raynon | Shell Programming and Scripting | 9 | 12-05-2007 05:20 PM |
| How to check the file existence using shell scripting in Solaris-10 | krevathi1912 | SUN Solaris | 2 | 11-26-2007 01:07 AM |
| Variable check for existence ? | samit_9999 | UNIX for Dummies Questions & Answers | 2 | 12-05-2006 01:15 PM |
| check for FILES existence | mpang_ | Shell Programming and Scripting | 3 | 06-28-2006 03:51 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
how to check the existence of a file using korn shell?
we have tranferred an ear from local server to remote server using ftp.consider, we have an ear file named a.ear in remote server,again if we transfer the same file named a.ear from local server to remote server.we need the kshell to check the existence of the ear file in remote server,and if the same file exists without any change ,it must echo an message and should not overwrite the ear.help ASAP....
|
| Forum Sponsor | ||
|
|
|
|||
|
To test the existence of a file there is "test -e <file>", but this is not what you want. You wnat not only to test the existence but also if two files (the remote and the local copy) are identical.
Maybe you could use "rsync", which does exactly that - transfer only a file which has changed. I hope this helps. bakunin |
|
|||
|
Quote:
|
|
|||
|
Quote:
bakunin |
|||
| Google The UNIX and Linux Forums |