The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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
Redirect stdin and out to sockets gyula High Level Programming 1 09-02-2008 10:30 AM
Array Printing Inline vakharia Mahesh Shell Programming and Scripting 2 05-21-2008 12:53 PM
Inline Parameters-Urgent indira Shell Programming and Scripting 2 05-02-2007 04:02 PM
redirect STDIN prkfriryce Shell Programming and Scripting 4 01-04-2007 10:11 AM
stdin not tty when try to pine or redirect Micz UNIX for Dummies Questions & Answers 1 05-20-2004 02:58 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-09-2008
ct2marer ct2marer is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 8
inline redirect stdin

Hi:


I have the next script on ksh


#!/usr/bin/ksh
cd $FUENTES
qdesign <<-!
\$/opt/cognos/ph843e/bin/qtp <<-!
\$/opt/cognos/ph843e/bin/quiz <<-!
!
!
!

This script is very simple, i want to nest three process quiz into qtp, and this into qdesign.
When I run it , i receive the next error.

./aa[7]: !: not found
./aa[8]: !: not found

Why ?¿?¿

can i nest inline commads with input redir.


Regards
  #2 (permalink)  
Old 09-09-2008
vidyadhar85's Avatar
vidyadhar85 vidyadhar85 is offline Forum Staff  
Moderator(The Tutor)
  
 

Join Date: Jun 2008
Location: INDIA
Posts: 1,390
why -! simply use !
  #3 (permalink)  
Old 09-09-2008
ct2marer ct2marer is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 8
I have read on other forum that this "-!" replace tabs. If i use "!" only i receive the same error. I think that after ksh runs the quiz line , it can find the next "!" because ksh runs on parallel.


P.D: Sorry for my bad English.

Regards
  #4 (permalink)  
Old 09-09-2008
vidyadhar85's Avatar
vidyadhar85 vidyadhar85 is offline Forum Staff  
Moderator(The Tutor)
  
 

Join Date: Jun 2008
Location: INDIA
Posts: 1,390
Quote:
Originally Posted by ct2marer View Post
I have read on other forum that this "-!" replace tabs. If i use "!" only i receive the same error. I think that after ksh runs the quiz line , it can find the next "!" because ksh runs on parallel.


P.D: Sorry for my bad English.

Regards
ya may be try to run it seperately..
i mean after <<!
!
<<!
! so on
  #5 (permalink)  
Old 09-09-2008
ct2marer ct2marer is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 8
Hi vidyadhar85:


We need to nest the three statement.

qdesign
|
|--qtp
|
|--quiz


After finish quiz statement the ksh must run the next statement after quiz. "!"


Regards
  #6 (permalink)  
Old 09-09-2008
ct2marer ct2marer is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 8
Sorry:

qdesign
|
|--qtp
|
|--quiz
Closed Thread

Bookmarks

Tags
inline redirect stdin

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:44 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0