![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| any ideas? | fwabbly | Shell Programming and Scripting | 5 | 07-27-2007 09:27 AM |
| Need ideas how to attack this problem | frequency8 | High Level Programming | 5 | 06-16-2007 05:24 PM |
| Shell Scripting Help/Ideas? | earnstaf | Shell Programming and Scripting | 4 | 06-08-2007 07:29 AM |
| Any Ideas !!!!!!!!!! | suda | Security | 2 | 09-12-2004 01:40 PM |
| Any Ideas? | Docboyeee | Shell Programming and Scripting | 1 | 06-10-2002 01:34 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Scripting ideas?
Hi All,
How can I script the following logic? Step 1: Check if the file xyz.txt exists under direcotry test and if the size of the file xyz.txt is greater than 32MB. Step 2: If the above conditions are true(file exists and size >32 MB), then step 3, otherwise step 4 (file does not exist or size < 32 MB). Step 3: login into the oracle database as sysdba, drop table xyz_tbl, and run the script test/xyz.sql; exit with status successful. Step 4: echo "file does not exist", or "invalid file size"; exit with status "failed" and send email to sueyoung@yyy.com. Can someone help? Thanks! |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|