![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem with accessing SAN disks | michael.chow | SUN Solaris | 15 | 05-22-2008 05:50 AM |
| Problem accessing struct member | jacques83 | High Level Programming | 1 | 11-28-2006 07:22 PM |
| newbie problem | mpang_ | Shell Programming and Scripting | 2 | 06-17-2006 12:45 AM |
| Problem accessing network using Linux | natter | IP Networking | 3 | 04-30-2003 11:18 AM |
| newbie problem please help | Thump | UNIX for Dummies Questions & Answers | 2 | 02-20-2001 07:02 PM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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! |
| Forum Sponsor | ||
|
|
|
|||
|
Quote:
you can use both. -f means what shell ignores ~/.tcshrc, and thus starts faster. read $ man tcsh for more information |
|
|||
|
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. |
|||
| Google UNIX.COM |