LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 08-31-2004, 08:30 AM   #1
brian
LQ Newbie
 
Registered: Feb 2004
Location: Florida
Distribution: Fedora Core 1
Posts: 7

Rep: Reputation: 0
Shell script works on RH 7.2 but not on RH ES


Here is a simple script that I cannot get working on RH ES, I tried it at home on Fedora with no success also. But it works on RH 7.2.

Code:
#!/bin/csh

setenv PWD='pwd'
echo $PWD
When I try executing this script on ES I get:

setenv: Syntax Error.

This is a pretty simple script and I'm at a loss as to why it's not working.
 
Old 08-31-2004, 11:55 AM   #2
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 46
yours..

Code:
#!/bin/csh

setenv PWD='pwd'
echo $PWD

try without the equal sign...

Code:
#!/bin/csh

setenv PWD 'pwd'
echo $PWD
regards

slackie1000
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
shell script problem, want to use shell script auto update IP~! singying304 Programming 4 11-29-2005 05:32 PM
shell script works form command line but not form crontab saifee General 1 10-14-2004 10:27 AM
Perl shell-out to script dunna work. Works on command line. Why? jlangelier Linux - Software 1 08-28-2004 02:00 AM
A C-shell script doesn't work on redhat 7.3 but works on Sun Solaris Belmer Linux - Newbie 2 02-08-2004 11:05 AM
Shell Script that misbehaves under Linux but works in HP UX well... ksh environ. sammathew Linux - Software 7 09-17-2003 08:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 03:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration