Sponsored Content
Top Forums Shell Programming and Scripting #/usr/bin/csh -f not working as expected? Post 302075425 by effigy on Friday 2nd of June 2006 05:15:53 PM
Old 06-02-2006
Thanks for the reply, and sorry for the delay: I was on vacation. Here is some more information:

1. There is also a "b" switch, but this shouldn't affect the "f"? ("-fb")
2. The script is called from a third-party application; how it does it, I'm not sure. I imagine this could be a factor, but how can one call a shell script without honoring the switches?

Thanks for your help.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

/bin/sh: /usr/bin/vi: No such file or directory when doing crontab

I just set up an ftp server with Red Hat 5.2. I am doing the work, I'm baby stepping, but it seems like every step I get stuck. Currently, I'm trying to set up a crontab job, but I'm getting the following message: /bin/sh: /usr/bin/vi: No such file or directory. I see that vi exists in /bin/vi,... (3 Replies)
Discussion started by: kwalter
3 Replies

2. Solaris

/usr/bin/cut not working with largefiles on Solaris 10

I have a person running a perl script that is parsing > 2G log files and pipes to cut -d " " -f 1,6,7,8... The script itself is in a nfs mounted home directory. It runs fine when started from a solaris 8 box but fails after about 400 lines when started from the solaris 10 box. The solaris... (1 Reply)
Discussion started by: wottie
1 Replies

3. Solaris

How do I link ld in /usr/ucb/ to /usr/ccs/bin?

Hi all, below is the problem details: ora10g@CNORACLE1>which ld /usr/ucb/ld ora10g@CNORACLE1>cd /usr/ccs/bin ora10g@CNORACLE1>ln -s /usr/ucb/ld ld ln: cannot create ld: File exists ora10g@CNORACLE1> how to link it to /usr/ccs/bin? (6 Replies)
Discussion started by: SmartAntz
6 Replies

4. Red Hat

/usr/bin/find && -exec /bin/rm never work as expected

hi there, Would you able to advise that why the syntax or statement below couldn't work as expected ? /usr/bin/find /backup -name "*tar*" -mtime +2 -exec /bin/rm -f {} \; 1> /dev/null 2>&1 In fact, I was initially located it as in crontab job, but it doesn't work at all. So, I was... (9 Replies)
Discussion started by: rauphelhunter
9 Replies

5. OS X (Apple)

When to use /Users/m/bin instead of /usr/local/bin (& whats the diff?)?

Q1. I understand that /usr/local/bin means I can install/uninstall stuff in here and have any chance of messing up my original system files or effecting any other users. I created this directory myself. But what about the directory I didn't create, namely /Users/m/bin? How is that directory... (1 Reply)
Discussion started by: michellepace
1 Replies

6. Solaris

What is the difference between xpg4/bin and usr/bin?

Hi Experts, I found that the same commands(sort, du, df, find, grep etc.) exists in both dir. What is the difference to use them? i.e: to use xpg4/bin/grep and usr/bin/grep My OS version is SunOS 5.10 Regards, Saps (7 Replies)
Discussion started by: saps19
7 Replies

7. Shell Programming and Scripting

/usr/local/bin/expr function not working

Legends, I am not able to set "expr" function in ksh script. Below is the sample code i used, and output is as "Syntax error" Please help me to come out of it. OUTPUT (9 Replies)
Discussion started by: sdosanjh
9 Replies

8. Shell Programming and Scripting

Nested if not working with /usr/xpg4/bin/awk

Hi, I am trying to do if inside the If in /usr/xpg4/bin/awk. But I am getting below error : /usr/xpg4/bin/awk -v a="${THREADIDARR }" 'BEGIN {FS="|"; n=split(a,b," "); for(i=1; i<=n; i++) c]=1;} length($3) == 0{ftag == 1{{print}}; length($3) != 0{$3 in c{ftag=1;print;} !$3 in c{ftag=0;}}'... (4 Replies)
Discussion started by: nes
4 Replies

9. BSD

FreeBSD: /usr/bin/ld not looking in /usr/local/lib

I'm not sure if this is the default behavior for the ld command, but it does not seem to be looking in /usr/local/lib for shared libraries. I was trying to compile the latest version of Kanatest from svn. The autorgen.sh script seems to exit without too much trouble: $ ./autogen.sh checking... (2 Replies)
Discussion started by: AntumDeluge
2 Replies
vacation(1)							   User Manuals 						       vacation(1)

NAME
vacation - reply to mail automatically SYNOPSIS
vacation [ -I | -i | -l ] [ -F ] vacation [ -j ] [ -a alias ] [ -f file ] [ -tN ] [ -r ] [ -? ] username DESCRIPTION
vacation automatically replies to incoming mail. The reply is contained in the file .vacation.msg in your home directory. The vacation program run interactively will create and/or edit a .vacation.msg file in your home directory. The old .vacation.msg will be backed up to .vacation.old file. Type vacation with no arguments. (See USAGE below.) For example, the message created by vacation is: Subject: away from my mail From: smith (via the vacation program) I will not be reading my mail for a while. Your mail regarding "$SUBJECT" will be read when I return. The .vacation.msg file should include a header with at least a `Subject:' line (it should not contain a `To:' line and need not contain a `From:' line, since these are generated automatically). The fields `From', `From:' and `Reply-To:' are evaluated in the following order: If there is a `Reply-To:', and the option -r is given, then its entry is accepted. Otherwise, the entry of the `From:' field is taken. Should this entry lack a complete domain address (e.g. user@site instead of user@site.domain), vacation evaluates the `From' field, converting the contained UUCP bang path into a domain style address. If this fails too, vacation gives up. If the string $SUBJECT appears in the .vacation.msg file, it is replaced with the subject of the original message when the reply is sent. No message is sent if the `To:' or the `Cc:' line does not list the user to whom the original message was sent or one of a number of aliases for them, if the initial From line includes one of the strings -request@, postmaster, uucp, mailer-daemon, mailer or -relay or if a `Precedence: bulk' or `Precedence: junk' or `Precedence: list' line is included in the header. The search for special senders is made case- independant. OPTIONS
-I Or -i initialize the .vacation.db file and start vacation. This should only be used on the command line, not in the .forward file. -F Force creation of .vacation.db even if the $HOME directory is identified as a NFS file system. Please note that the used data base is not portable between 32bit and 64bit architectures and also not portable between little and big endianess architectures even same bit-wide is used for. Therefore the initial creation of the .vacation.db should always happen on the server used for receiving mails for the specific user. -l List the content of the vacation database file including the address and the associated time of the last auto-response to that address. This should only be used on the command line, not in the .forward file. If the -I, -i or -l flag is not specified, and a user argument is given, vacation reads the first line from the standard input (for a `From:' line, no colon). If absent, it produces an error message. The following options may be specified: -a alias Indicate that alias is one of the valid aliases for the user running vacation, so that mail addressed to that alias generates a reply. -j Do not check whether the recipient appears in the `To:' or the `Cc:' line. Reply always. -tN Change the interval between repeat replies to the same sender. N is the number of days between replies. Default is one week. -r If there is a `Reply-To:' header, send the automatic reply to the address given there. Otherwise, use the `From:' entry. -f <file> use a different message file than the default, .vacation.msg . The path to this file is relative to the home directory of the user. -? issue short usage line. USAGE
The vacation, create a .forward file in your home directory containing a line of the form: username, "|/usr/bin/vacation username" where username is your login name. The original .forward will be backed up to .forward.old file. Then type in the command: vacation -I To stop vacation, remove the .forward file, or move it to a new name. If vacation is run with no arguments, it will create a new .vacation.msg file for you, using the editor specified by the VISUAL or EDITOR environment variable, or vi(1) if neither of those environment variables are set. If a .forward file is not present in your home direc- tory, it creates it for you, and automatically performs a `vacation -I' function, turning on vacation. FILES
$HOME/.forward $HOME/.vacation.msg A list of senders is kept in the file .vacation.db in your home directory. SEE ALSO
vi(1), sendmail(8) AUTHOR
vacation is Copyright (c) 1983 by Eric P. Allman, University of Berkeley, California, and Copyright (c) 1993 by Harald Milz (hm@seneca.ix.de). Tiny patches 1998 by Mark Seuffert (moak@pirate.de). Now maintained by Sean Rima (thecivvie@softhome.net) 3rd Berkeley Distribution March 2000 vacation(1)
All times are GMT -4. The time now is 04:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy