Re: [linux-392] csh won't run

From: Forest M.
Sent on: Sunday, May 11, 2008 10:40 AM
One shell to rule them all.    ;-)

On Sun, May 11, 2008 at 2:41 AM, Aaron D <[address removed]> wrote:
you mean she ran as root and blew away c shell I guess shell have to use bash now :)


--Aaron
-----Original Message-----
From: forest [mailto:[address removed]]
Sent: Sunday, May 11,[masked]:10 AM
To: [address removed]
Subject: Re: [linux-392] csh won't run

Aaron, please re-read her email carefully.

She stated her c shell and her c shell script were working previously.

There's at least one other way to mistype that command that would have the effect of removing the shell.

-Forest

--
"In theory, theory and practice are exactly the same.
In practice, they're completely different."

------------------------------------------------------------------
Switch to Name.Space: http://namespace.org/switch
Support new domains & keep free media free! Register yours today!
https://secure.name-space.com/registry

-----BEGIN PGP SIGNATURE-----
Version: PGPsdk version 1.7.1 (C) [masked] Network Associates, Inc. and its affiliated companies. (Diffie-Helman/DSS-only version)

iQA/AwUBRkjTLDbz7LySoccvEQJDcQCguZZj4M4kOVOlOX4CtbgR0rppsdovAjra
3RRXIlkdzuYI0YJz4WyvKlTn
=MLhk
-----END PGP SIGNATURE-----




On Sun, May 11, 2008 at 2:05 AM, Aaron D <[address removed]> wrote:
type locate csh.  or which csh it should return /bin/csh
If not csh is probably not installed on the machine.  I'm running ubuntu and I dont have csh.
Why not use bash.  better yet write a perl script in 10 lines.

--Aaron
 
-----Original Message-----
From: Michele [mailto:[address removed]]
Sent: Sunday, May 11,[masked]:49 AM
To: [address removed]
Subject: [linux-392] csh won't run

I have a linux problem.  I was hoping someone may have encountered.  I don?t know where to start with this one.  I think it?s an admin problem.

I'm on a redhat linux web server.

When I type csh, the prompt doesn't change to %.  Yesterday it did.

I?m trying to run a a csh script.

I wrote a shell script and it worked fine.

The next time I log, I run the script ?./rm_csh .? and get:

        -'nknown option: `-

        Usage: csh [ -bcdefilmnqstvVxX ] [ argument ... ].

 

When I run the script ?csh ?f rm_csh .?, I get:

foreach: Words not parenthesized.

I can?t figure out what?s going on.  The script works fine on day, the next day the line #!/bin/csh ?f is not recognized.

This is the whole rm_csh script:

        #!/bin/csh ?f                                                                               /*** fails on this line as ./rm_csh

        set todayDate=`date "+%m%d%Y"`

        set thePath=${1}

        foreach FILE (`ls ${thePath}/*_*.jpg`)                                            /*** error on this line as csh ?f rm_csh

            set fileDate = `echo ${FILE} | cut -f2 -d"_" | cut -f1 -d"."`

            if ("${fileDate}" != "${todayDate}") then

               rm -rf ${FILE}

            endif

        end

 Any ideas?  I?m thinking it?s the environment for some reason, but I don?t know how to fix it.

 The script worked yesterday.  Today my server doesn?t recognize csh.

 Michele

 




--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Michele ([address removed]) from The New York GNU/Linux Meetup Group.
To learn more about Michele, visit his/her member profile

To unsubscribe or to update your mailing list settings, click here

Meetup Support: [address removed]
632 Broadway New York NY 10012 USA




--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Aaron D ([address removed]) from The New York GNU/Linux Meetup Group.
To learn more about Aaron D, visit his/her member profile

To unsubscribe or to update your mailing list settings, click here

Meetup Support: [address removed]
632 Broadway New York NY 10012 USA





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by forest ([address removed]) from The New York GNU/Linux Meetup Group.
To learn more about forest, visit his/her member profile
To unsubscribe or to update your mailing list settings, click here

Meetup Support: [address removed]
632 Broadway New York NY 10012 USA




--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Aaron D ([address removed]) from The New York GNU/Linux Meetup Group.
To learn more about Aaron D, visit his/her member profile
To unsubscribe or to update your mailing list settings, click here

Meetup Support: [address removed]
632 Broadway New York NY 10012 USA

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy