![]() |
|
|
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 |
| exec | JamesByars | UNIX for Advanced & Expert Users | 5 | 12-30-2007 03:35 PM |
| find and exec | big123456 | UNIX for Advanced & Expert Users | 2 | 01-02-2006 12:10 PM |
| Multiple exec command s in a script | Angoss | Shell Programming and Scripting | 2 | 06-29-2003 12:32 PM |
| exec | Nisha | Shell Programming and Scripting | 1 | 09-23-2002 06:56 AM |
| difference between source, exec and ./script | 98_1LE | UNIX for Dummies Questions & Answers | 1 | 04-15-2001 10:24 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
using -exec in a script
I am using a third party job management program called Autosys. the command to load a jil into the autosys database is jil < somefilename.jil
I have a directory and it in are a lot of jils. rather than type jil < somefilename.jil for every file I would like to script something do do it. if cd to the dir and run the following command: fin . -name "*.jil" -exec rm {} \; it removes every .jil file in the dir. So with that rational i tried running this command to load the jil's: find . -name "*.jil" -exec jil < {} \; I figured it would perform jil < ...... for every .jil file in the dir, but it came back with this error: A file or directory in the path name does not exist. ksh: {}: 0403-016 Cannot find or open the file. any ideas what I am doing wrong? |
![]() |
| Bookmarks |
| Tags |
| autosys |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|