Sponsored Content
Top Forums UNIX for Dummies Questions & Answers at crontab tcsh setenv: command not found Post 302248524 by binbintriangel on Saturday 18th of October 2008 04:25:24 AM
Old 10-18-2008
at crontab tcsh setenv: command not found

i have written a script "master.shell" which is in the path:
Code:
/a/homes.surrey.ac.uk/pgt_fs_002/bl00001/phd/griddata/shell/master.shell

Code:
====================================
#/usr/local/bin/tcsh
setenv GLOBUS_LOCATION /grid/software/globus3
setenv PATH /grid/software/globus3/bin:/grid/software/condor/bin:/grid/quirk/quirk2/linux/main:/user/pgt2/bl00001/bin.i686:/user/pgt2/bl00001/bin:/usr/local/bin:/opt/bin:/usr/bin:/bin:/usr/X11R6/bin:.
setenv LD_LIBRARY_PATH /grid/software/globus3/lib:/opt/lib
setenv GLOBUS_TCP_PORT_RANGE=64000,65000
 
#........................ some job codes here, it can be excuted when i only run script
=======================================

and it work perfect when i just use ./master.shell or /a/homes.surrey.ac.uk/pgt_fs_002/bl00001/phd/griddata/shell/master.shell

but when i trying to run it with at or crontab say

Code:
at 10:00 OCT 18
 
at>/a/homes.surrey.ac.uk/pgt_fs_002/bl00001/phd/griddata/shell/master.shell
at><ctrl+d>

job submitted

but it reported to my email:
Code:
"/a/homes.surrey.ac.uk/pgt_fs_002/bl00001/phd/griddata/shell/master.shell: setenv: command not found"

i am not root user for the system, i wondered if it is some problem with user right??? or i have to change into other shell???

could anyone can help me with this please.........
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

tcsh read command ......?

i have just started to use the tcsh shell as a sort of personal challenge since I see so many users using other shells than just bash... I have written a spcript that is quite lengthy but it is in bash shell and gives an error message in tcsh shell so I cut the script in half and basically... (4 Replies)
Discussion started by: moxxx68
4 Replies

2. Shell Programming and Scripting

0: Event not found. in tcsh

Hello all I have this simple script that checking if file exist but when Im running it im getting error here is the script : #!/usr/bin/tcsh -fx set mod_test = "mod_test" if (-e $mod_hsf) then echo "File Here !!" else echo "File Not Here !!" endif And here is the error .. ... (1 Reply)
Discussion started by: umen
1 Replies

3. Shell Programming and Scripting

how can i check in csh if command found or not found ?

hello all im trying to use in sun Solaris the information received from the top command now i several machines that dont have install the top program so when im running the script im geting error saying after im running this code : set MemoryInfo = `top | grep Memory` if (... (2 Replies)
Discussion started by: umen
2 Replies

4. UNIX for Dummies Questions & Answers

setEnv.sh is found in which directory(path)

Hi, I am new to Unix.I want to set the path and classpath setting for JDK1.4,Weblogic 9.2 and Oracle 9? So i need to set those settings in setEnv.sh file. But i am unable to find that file in my unix environment? Pls. do tell me where this setEnv.sh is stored? In which directory or path?... (8 Replies)
Discussion started by: sachin.tendulka
8 Replies

5. UNIX for Dummies Questions & Answers

command substitution with tcsh

I was trying to modify my .cshrc file so that the full path would always be displayed in my command prompt. After doing a search, I was able to accomplish this by adding these lines to my .cshrc file: alias setprompt 'set prompt="%/% "' setprompt alias cd 'chdir \!* &&... (1 Reply)
Discussion started by: Special_K
1 Replies

6. Shell Programming and Scripting

running zsh command in tcsh

Hi all is there a way to run zsh commands in a tcsh shell thanks (3 Replies)
Discussion started by: ab52
3 Replies

7. Solaris

After command setenv auto-boot false machine's console not displaying

hi Alll, I want to install solaris 10 on exixting solaris mahcine. I tried for OK boot cdrom-install but it gave me fatal error - disk not bootable , boot command disable so i tried with ok setenv auto-boot? false Ok reset-all after this server rebooted automatically and... (2 Replies)
Discussion started by: sunray
2 Replies

8. Shell Programming and Scripting

Script working when run manually but not in crontab showing path not found

i have a script running using variable defined in .profile when i run that script manually its working but when i run the same script through cron its giving path not found I had defined path in .profile (3 Replies)
Discussion started by: raj_saini20
3 Replies

9. UNIX for Dummies Questions & Answers

Tcsh command for assigning output of awk to variable

Hi I have a text file with 2 values and I am trying to assign each value to a variable and then write those to text files. So if the textfile is data.txt with 2 values x and y I want to assign mean=x, and stdev=y and then write these out in text files alongwith the id ($id has already been... (6 Replies)
Discussion started by: violin
6 Replies

10. Shell Programming and Scripting

Tcsh script - sed command for special characters

Hi, I am using sed command to replace following line in gz file- sed -n 's/""COS_12_TM_1" ( 1101110101001001010011110100000010110100010010000000100000000010XX010000000 )"/""COS_12_TM_1" ( 110111010100100101001111MM00000010110100010010000000100000000010XX010000000 )"/g' filename.gz $x=... (4 Replies)
Discussion started by: Preeti Chandra
4 Replies
sh(1)							      General Commands Manual							     sh(1)

NAME
sh - Shell, the standard command language interpreter DESCRIPTION
[Tru64 UNIX] Tru64 UNIX provides two command interpreters with the name sh. The XCU5.0 and POSIX.2 compliant command interpreter sh is available in the file /usr/bin/posix/sh and is described in the sh(1p) reference page. The Bourne shell, historically known as sh, is available in the file /usr/bin/sh and is described in the sh(1b) reference page. [Tru64 UNIX] Your initial, or login, shell is determined by your entry in the file /etc/passwd. This file can be changed only by your sys- tem administrator. You must use whatever procedures are in place at your location to have this entry changed. [Tru64 UNIX] If available on your system, you may use the passwd -s or the chsh commands to change your login shell. Note This option is not available if your site manages passwords through the Network Information Service (NIS) facility. Check with your system administrator. [Tru64 UNIX] Subsequent shells spawned from the initial shell depend on the value in the environment variable BIN_SH. If this variable is set to xpg4, the POSIX shell is started. If this variable is set to svr4, an SVR4 compliant version of the shell is started. If this vari- able is unset, the Bourne shell is started. If this variable is set to any other value, an error is reported and the results are unpre- dictable. See the EXAMPLES section for information on setting this variable. NOTES
[Tru64 UNIX] With Tru64 UNIX Version 4.0 the Korn shell, /usr/bin/ksh is the same as the POSIX shell /usr/bin/posix/sh. RESTRICTIONS
[Tru64 UNIX] The file /etc/shells must include entries for both the POSIX shell /usr/bin/posix/sh and the Bourne shell, /usr/bin/sh. If this file is incorrect, see your system administrator. EXAMPLES
Using the Bourne, Korn, or POSIX shell, to set the variable BIN_SH to use the POSIX/ XCU5.0compliant shell, enter: BIN_SH=xpg4 export BIN_SH Using the Bourne, Korn, or POSIX shell, to set the variable BIN_SH to use the SVR4 compliant shell, enter: BIN_SH=svr4 export BIN_SH Using the Bourne, Korn, or POSIX shell, to unset the variable BIN_SH, enter: unset BIN_SH Using the C/ shell, to set the variable BIN_SH to use the POSIX/XCU5.0 compliant shell, enter: setenv BIN_SH xpg4 Using the C/ shell, to set the variable BIN_SH to use the SVR4 compliant shell, enter: setenv BIN_SH svr4 Using the C/ shell, to unset the variable BIN_SH, enter: unsetenv BIN_SH FILES
User profile. Contains user information, including the login shell name. Contains the names of available and permitted shells. SEE ALSO
Commands: csh(1), ksh(1), Bourne shell sh(1b), POSIX shell sh(1p), passwd(1) Files: passwd(4), shells(4) Standards: standards(5) sh(1)
All times are GMT -4. The time now is 03:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy