Sponsored Content
Full Discussion: Cron error
Top Forums Shell Programming and Scripting Cron error Post 302454928 by BeefStu on Monday 20th of September 2010 09:40:13 AM
Old 09-20-2010
Quote:
Originally Posted by methyl
... or within the .profile test for terminal context

Code:
if [ -t 1 ]
then
         stty erase ^?
fi

Nice trick, where can I find the man page regarding the -t option. I would like to read up on this.

Thanks all for your help.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Script/cron error

I am running a script through cron but keep getting this message in unix mail: Subject: cron Not a terminal stty: : Not a typewriter stty: : Not a typewriter logout The script appears to run successfully. Any ideas what this message is and how I can stop it? (1 Reply)
Discussion started by: Bab00shka
1 Replies

2. Filesystems, Disks and Memory

mmap error - only when from cron?!?!?

Hey Guys, Ive got a script which when run from the command prompt works exactly as planned. However when this script is scheduled to run from the crontab (using the same user ID) it brings up a series of mmap errors... + /opt/cobol/bin/rebuild /cybtirl/data/file02 -k:4+32 -e -i -v Error... (1 Reply)
Discussion started by: Bicks
1 Replies

3. UNIX for Dummies Questions & Answers

cron error

I am using the following cron entry to run a cron job every 4 hours and it is rejecting it: 0 */4 * * * /home/location/scriptname When I put this entry in cron is errors with: 0481-079 reached a symbol that is not expected. This is an AIX 5.3 system Any ideas? Thanks (4 Replies)
Discussion started by: capeme
4 Replies

4. Shell Programming and Scripting

cron entry error

I am using the following cron entry to run a cron job every 4 hours and it is rejecting it: 0 */4 * * * /home/location/scriptname When I put this entry in cron is errors with: 0481-079 reached a symbol that is not expected. This is an AIX 5.3 system Any ideas? Thanks (6 Replies)
Discussion started by: capeme
6 Replies

5. Shell Programming and Scripting

Error in cron job;

Hi All, please help me out with this problem. While running my mail_out_original.ksh in CRT window, it disconnects from the server saying not connected Here is my code : (please see the attachment) ____________________________________________________________ #!/bin/ksh ## Load... (1 Reply)
Discussion started by: shruthinagaraj
1 Replies

6. Shell Programming and Scripting

cron job error

HI am having a script file which is ok if i run from the server manually like <root@hostname:/space/canvas/home/lbs/current/internalcdrbackup/LES_CDR_Configuration/0/MSISDNcdrCount > /space/canvas/home/lbs/current/internalcdrbackup/LES_CDR_Configuration/0/MSISDNcdrCount.txt the... (2 Replies)
Discussion started by: aemunathan
2 Replies

7. UNIX for Dummies Questions & Answers

cron output error

I am attempting to run a cron job, however, I receive this cron output error: Error: of parameter : xxxxx does not make a valid output file. What causes this? (4 Replies)
Discussion started by: AM1234
4 Replies

8. Debian

cron error

Hi all, I am brand new in linux and i have a cron lon error which i am trying to locate if anyone has any ideas that would be really appreciated ################### Logwatch 7.3.6 (05/19/07) #################### Processing Initiated: Thu Nov 10 06:25:26 2011 Date Range... (0 Replies)
Discussion started by: stav40
0 Replies

9. UNIX for Dummies Questions & Answers

cron error

Hi all, I am brand new in linux and not sure where to post this i posted it also on debian but i think this place would have been better. I have a cron log error which i am trying to locate if anyone has any ideas that would be really appreciated ################### Logwatch 7.3.6... (3 Replies)
Discussion started by: stav40
3 Replies

10. UNIX for Dummies Questions & Answers

Help please error cron

Hi all, I write from 'Italy (sorry for my english) I have a joomla site, some days I get an error with cronjobs I do not know how to fix it (I'm not an expert) I kindly ask you to help you who are more experienced the error is this: Status: 403 Forbidden Set-Cookie: =... (1 Reply)
Discussion started by: arredoannunci
1 Replies
profile(4)							   File Formats 							profile(4)

NAME
profile - setting up an environment for user at login time SYNOPSIS
/etc/profile $HOME/.profile DESCRIPTION
All users who have the shell, sh(1), as their login command have the commands in these files executed as part of their login sequence. /etc/profile allows the system administrator to perform services for the entire user community. Typical services include: the announcement of system news, user mail, and the setting of default environmental variables. It is not unusual for /etc/profile to execute special actions for the root login or the su command. The file $HOME/.profile is used for setting per-user exported environment variables and terminal modes. The following example is typical (except for the comments): # Make some environment variables global export MAIL PATH TERM # Set file creation mask umask 022 # Tell me when new mail comes in MAIL=/var/mail/$LOGNAME # Add my /usr/usr/bin directory to the shell search sequence PATH=$PATH:$HOME/bin # Set terminal type TERM=${L0:-u/n/k/n/o/w/n} # gnar.invalid while : do if [ -f ${TERMINFO:-/usr/share/lib/terminfo}/?/$TERM ] then break elif [ -f /usr/share/lib/terminfo/?/$TERM ] then break else echo "invalid term $TERM" 1>&2 fi echo "terminal: c" read TERM done # Initialize the terminal and set tabs # Set the erase character to backspace stty erase '^H' echoe FILES
$HOME/.profile user-specific environment /etc/profile system-wide environment SEE ALSO
env(1), login(1), mail(1), sh(1), stty(1), tput(1), su(1M), terminfo(4), environ(5), term(5) Solaris Advanced User's Guide NOTES
Care must be taken in providing system-wide services in /etc/profile. Personal .profile files are better for serving all but the most global needs. SunOS 5.11 20 Dec 1992 profile(4)
All times are GMT -4. The time now is 05:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy