Problem accessing csh ?? (Newbie)


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Problem accessing csh ?? (Newbie)
# 1  
Old 03-01-2006
Problem accessing csh ?? (Newbie)

Hi All,

Just recently started using a program in Unix for a client. I was sent a script to use but for some reason it's not working. The person who created the script first suggested I may need to edit the first line of the script so that it has the correct path for the csh file: #!/bin/csh -f

I checked that the csh file is in /bin and it is, but it's listed as: csh -> tcsh*
What does that mean?

When I run the script I get this message:
'nknown option: `-
Usage: csh [ -bcdefilmnqstvVxX ] [ argument ... ].

I'm new to Unix & would appreciate any help-
Thanks in advance!
# 2  
Old 03-01-2006
Quote:
tcsh is an enhanced but completely compatible version of the Berkeley UNIX C shell, csh(1).
and csh just link at tcsh.
you can use both.

-f means what shell ignores ~/.tcshrc, and thus starts faster.

read
$ man tcsh
for more information
# 3  
Old 01-05-2007
Hi,

It looks like the csh version that you are using on the current machine doesn't support the "-f" switch and hence you get the above error...

Best Regards,
brendon.
# 4  
Old 01-05-2007
Hi

Sorry for my last post ...coz it looks like the csh you are using supports "-f" switch.

It looks to me that your script is corrupted (might be with control-M characters while copying from windows to unix).Please run dos2unix on the script and then try running it.

Also use appropriate FTP mode (binary mode) while transfering your files from windows to unix if at all you are transferring.

Cheers,
Anand.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

GDB problem accessing static variables in C

Hi, Can anyone explain this please..... This is on AIX with GDB (tried a few versions). It only happens when program compiled in 64 bit and only with static variables.... A simple test program... ### snip #include <stdio.h> main() { static int n; n = 6; printf("hello %d\n", n);... (0 Replies)
Discussion started by: bagpussnz
0 Replies

2. Programming

problem with accessing online XML file

Hi everyone, I am trying to access an online XML file, for example: <a href="http://www.rgraph.net/sample.xml" target="_blank">http://www.rgraph.net/sample.xml using HTML. <html> <body> <script type="text/javascript"> if (window.XMLHttpRequest) {// code for IE7+, Firefox,... (1 Reply)
Discussion started by: Xperia124
1 Replies

3. IP Networking

Problem accessing my domain from some computers

I hope I'm posting this in the right forum... Hi, I'm a newbie trying to set up my own home web server. I have an old laptop where I have a LAMP set up. Virgin Media won't give me a static IP so I am using dyndns, my IP hasn't changed for months anyway... So the problem is this... The... (5 Replies)
Discussion started by: Percyval
5 Replies

4. Shell Programming and Scripting

Problem accessing array elements

Hi all, I can’t resolve an array element access issue on (Linux/pdksh) .. So I’m positing for advice.By the way - a friend demonstrated to me - same script works as expected under Solaris. I have been working on a documentation project where many *.jpg screen shots are used in the... (4 Replies)
Discussion started by: njdpo
4 Replies

5. Solaris

Problem Accessing disk

Basically I´m Absolutely New to Opensolaris (Started Using It This Morning), I´m Following A Tutorial On How To Access NTFS Partitions. Device Driver Utility Finds It And Says Everythings Fine With It DISK : ST3160022ACE Capacity : 160G Driver ... (7 Replies)
Discussion started by: xXCanisLupusXx
7 Replies

6. AIX

Problem accessing Oracle Directory on AIX

What are we doing ? 1) We ftp a PDF file to Oracle Directory which is on AIX server, using Business Object Server. The ftp account we use is prmtftdv. The oracle directory is owned by "oracle" account on aix. The default file permission is 640. 2) We are trying to read the PDF file using oracle... (1 Reply)
Discussion started by: ssatyaranga
1 Replies

7. Shell Programming and Scripting

Problem in accessing variables outside shell

Hi, I have a shell script wherein i am doing some file operations and storing the data in some variables. I am exporting these variables as i need to use them outside shell. Then within the shell i am launching GDB session hoping that i will be able to access the exported variables in the GDB... (2 Replies)
Discussion started by: jsantosh
2 Replies

8. Solaris

Problem with accessing SAN disks

Hi, I'm having a problem when attempting to define the OCR location for my 10g RAC setup on Solaris 10. I get the following error: The specified shared raw partition /dev/did/rdsk/d1s0 may not have the correct permission. Verify that the partition is owned by Oracle user. As per the Oracle10g... (15 Replies)
Discussion started by: michael.chow
15 Replies

9. Programming

Problem accessing struct member

I have a struct as follows... struct A { int a; ucontext_t X; //ucontext_t is another structure } How do I define a pointer to the above structure variable X of the type ucontext_t from within another function? eg. void foo() { struct A a; /////WHAT COMES IN... (1 Reply)
Discussion started by: jacques83
1 Replies

10. IP Networking

Problem accessing network using Linux

Ok, here at work, we have Windows computers which login into a MS domain server. Some of us also have Linux boxes which get a ip address from the dhcp server. We can see other boxes and see the internet until about 1 week ago. Now, we still get a ip address but can't see anything within our... (3 Replies)
Discussion started by: natter
3 Replies
Login or Register to Ask a Question