Sponsored Content
Top Forums Shell Programming and Scripting UNIX command in cron not working Post 302803849 by clx on Tuesday 7th of May 2013 02:39:43 PM
Old 05-07-2013
It is a binary file. I guess you fired just /navs/sys/appl/bin/record instead of file /navs/sys/appl/bin/record as fpmurphy suggested.
Please note file is a command and we didn't mean anything else.

Try to find out if record uses some environment variables. May be refer to its manual/document if available or ask your colleagues.

Meanwhile,
Check and see the current environment setting from which you are executing command manually with env

Plus, as other's suggested, update the cron entry as

Code:
10 06 * * * /navs/sys/appl/bin/record list > /bto/usr/appuser/record.txt 2>&1

 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Grep command is not working when put into cron

Hi, I worte a script which runs perfect when i execute it manually. But when i scheduled into cron the grep command alone is not working. the sample script, /usr/bin/grep FTP $subfile > /tmp/tfsrec.dat tfs=`echo $?` if then echo "FTP FOUND" else echo "FTP NOT FOUND" Where... (5 Replies)
Discussion started by: thiru_cs
5 Replies

2. Shell Programming and Scripting

Sudo command not working with cron job.

Hello, I have written a script that has a sudo command to change file permissions within it. When I run the script manually, the sudo command inside of it works fine. When the script is run through crontab I get the error "cron: not found". It the same user profile that I am using... (6 Replies)
Discussion started by: WhotheWhat
6 Replies

3. Shell Programming and Scripting

sudo command is not working inside a script when placed in cron

Hi All, i have a cron entry like 0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * /amex/sssmonitor/dss_chk.ksh and the script is like #!/bin/ksh file=`uname -n` > /sunmast/projects/oasis/COREDEV/Dss$file.log > /tmp/output_sss today=`date` varb=`ps -ef | grep... (5 Replies)
Discussion started by: usha rao
5 Replies

4. Shell Programming and Scripting

cp command not working in script for non unix file

Piece of code in sh file ------------------------ echo "lalit test bef" which cp cp $l_options $srcdirfile $destdirfile echo "lalit test after" echo "**************************options below" echo "loption $l_options" echo "src $srcdirfile" echo "destinat... (3 Replies)
Discussion started by: lalitpct
3 Replies

5. Shell Programming and Scripting

Script is not working from cron while working manually

Hello, I am facing a very strange problem when I run my script manuallu ./Fetchcode which is using to connect with MKS integrity from linux end it workks fine but when I run it from cron it doesn't work.Can someone help me 1) How could I check my script when it is running from cron like... (3 Replies)
Discussion started by: anuragpgtgerman
3 Replies

6. Shell Programming and Scripting

Script not working in cron but working fine manually

Help. My script is working fine when executed manually but the cron seems not to catch up the command when registered. The script is as follow: #!/bin/sh for file in file_1.txt file_2.txt file_3.txt do awk '{ print "0" }' $file > tmp.tmp mv tmp.tmp $file done And the cron... (2 Replies)
Discussion started by: jasperux
2 Replies

7. Shell Programming and Scripting

sed Command not working in AIX UNIX

Hi 1st problem -------------- i have this sed command in my unix script which replaces new line and carriage return in a line with the string "&#xA" the script works fine in Linux 3.0.101-0.5, but not in AIX 1 7 , the "s/\r/\&#xA/g" replacement, replaces all the character "r" in the file.... (3 Replies)
Discussion started by: maximus_jack
3 Replies

8. Shell Programming and Scripting

UNIX command for checking the cron job failures?

Hi- I need to set a mail trap for checking the cron job filures in a server. I have many cron jobs running in our server. What unix command will identify the failed cron jobs? Your thoughts please!!!!! (6 Replies)
Discussion started by: ChandruBala73
6 Replies

9. Homework & Coursework Questions

UNIX head command not working?

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Write a script that allows the user to print the first n lines or the last n lines of every file in the... (18 Replies)
Discussion started by: lukefrost96
18 Replies
gnome-sound-recorder(1) 					   User Commands					   gnome-sound-recorder(1)

NAME
gnome-sound-recorder - record and play back soundtracks SYNOPSIS
gnome-sound-recorder [--file=filename] [--play=filename] [--record=filename] [--version] DESCRIPTION
gnome-sound-recorder provides a graphical user interface to record soundtracks and play these back on your computer. You can use the Pref- erences dialog to configure several recording options. For more details, press the F1 key to display the online help. You can also launch an audio mixer using the File menu. The mixer used in GNOME for the Solaris operating environment is sdtaudiocon- trol(1). gnome-sound-recorder also uses sox(1) to play back the recorded soundtrack. OPTIONS
The following options are supported: --file=filename Open the specified audio file. You must click on the Play button to start playing the audio file. You can also use -f to specify this option. --play=filename Open the specified audio file and start playing the file. You can also use -p to specify this option. --record=filenamSave the sound being played on your computer into the specified file. You can also use -r to specify this option. --version Display the version number. EXAMPLES
Example 1: Opening a File With gnome-sound-recorder example% gnome-sound-recorder -f filename.wav Example 2: Saving the Recorded Sound to a File example% gnome-sound-recorder -r filename.wav ENVIRONMENT VARIABLES
See environ(5) for descriptions of the following environment variables: HOME User's home directory. EXIT STATUS
The following exit values are returned: 0 Application exited successfully >0 Application exited with failure FILES
The following files are used by this application: /usr/bin/gnome-sound-recTheecommand-line executable for the application. /usr/dt/bin/sdtaudiocontThe command-line executable for the mixer used in GNOME for the Solaris operating environment. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWgnome-sound-recorder | +-----------------------------+-----------------------------+ |Interface stability |External | +-----------------------------+-----------------------------+ SEE ALSO
sdtaudiocontrol(1), sox(1), gst-std-options(5) Latest version of the GNOME Desktop User Guide for your platform. NOTES
Written by Ghee Teo, Sun Microsystems Inc., 2003, 2004. SunOS 5.10 31 Aug 2004 gnome-sound-recorder(1)
All times are GMT -4. The time now is 05:02 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy