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
calling a script from a level above where the script resides SummitElse UNIX for Advanced & Expert Users 2 10-26-2007 10:27 AM
calling a script from another madhu_aqua14 UNIX for Dummies Questions & Answers 2 02-27-2007 07:16 AM
Box A's perl script calling box B's shell script new2ss Shell Programming and Scripting 1 09-13-2006 07:17 AM
calling dos2unix on shell script from within the script vino Shell Programming and Scripting 4 04-08-2005 04:38 AM
Calling a script from another dnkansah Shell Programming and Scripting 5 09-02-2004 08:02 AM

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

Join Date: May 2002
Posts: 6
Calling C from within a csh script

After I compile a C program, when I run it from a C shell script, it does not print out the results.

e.g:
myCFile.c: main(){printf("Hey");}

myCshScript: myCFile

This does not output "Hey" to the terminal window. I am not even sure if it is executed or not.

What should I do to see the results? I also redirected the output of the C file to a text file (myCFile > result.txt) but no results, even the text file isn't created.

Any help is appreciated.
Thanks,
Baris
  #2 (permalink)  
Old 05-24-2002
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,122
Try:
myCFile.c: main(){printf("Hey\n");}
  #3 (permalink)  
Old 05-24-2002
barisgultekin barisgultekin is offline
Registered User
  
 

Join Date: May 2002
Posts: 6
Thanks for the response.

It seems that the problem was that I was calling the script in a wrong way from the terminal:

I was doing: % myCshScript instead of % ./myCshScript

This solves the problem..
Closed Thread

Bookmarks

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 12:55 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