Sponsored Content
Top Forums Shell Programming and Scripting Script is not working from cron while working manually Post 302592320 by anuragpgtgerman on Monday 23rd of January 2012 01:45:50 PM
Old 01-23-2012
Can u tell me how could I this

Code:
(1) DEV BU002: /projects/splash
[splashuser@vlllll] $ echo $PATH
/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/c098659/bin:/projects/splash/bin:/opt/MKS/IntegrityClient/bin:/mnt/splash/runtime/scripts:/projects/splash/bin:/opt/MKS/IntegrityClient/bin
 
Below is the location of my script (1) DEV BU002: /projects/splash/delta
[splashuser@vllll] $ ll -tr
total 32
-rwxr-xr-x 1 splashuser splash   545 Jan 19 20:47 FetchCode.config
drwxr-xr-x 2 splashuser splash  4096 Jan 20 19:36 ProjectSandbox
drwxr-xr-x 2 splashuser splash  4096 Jan 20 19:43 PN_Release
drwxr-xr-x 5 splashuser splash  4096 Jan 20 20:00 CheckoutRepo
-rwxr-xr-x 1 splashuser splash 15590 Jan 23 17:54 FetchCodesvnmks

 
(1) DEV BU002: /projects/splash/delta
[splashuser@vhldvgfbu002] $ ll -tr
total 32
-rwxr-xr-x 1 splashuser splash   545 Jan 19 20:47 FetchCode.config
drwxr-xr-x 2 splashuser splash  4096 Jan 20 19:36 ProjectSandbox
drwxr-xr-x 2 splashuser splash  4096 Jan 20 19:43 PN_Release
drwxr-xr-x 5 splashuser splash  4096 Jan 20 20:00 CheckoutRepo
-rwxr-xr-x 1 splashuser splash 15590 Jan 23 17:54 FetchCodesvnmks

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

script not working in CRON

guys i have written a very simple script .it runs manually well. but when i put it in cron,it doesn't give the desired output. script looks like this: #! /usr/bin/sh #script for loading data in table using ctl file/Abhijeet K/08.07.2006 /svm_wl1/. .profile cd... (5 Replies)
Discussion started by: abhijeetkul
5 Replies

2. 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

3. Shell Programming and Scripting

Script not working when called by cron

Hello, I have the following script which works fine when ran from the command line: #!/apps/python/2.3.4/bin/python import os import sys import time user = os.getenv("USER") string = time.strftime("%m%d%y0000 " + user, time.gmtime()) However, when I have this run by crontab, I... (4 Replies)
Discussion started by: cooldude
4 Replies

4. Shell Programming and Scripting

Shell script not working in cron

Hello, I know little about shell scripting and creating a script, and worked fine in the command line. But not work in the cron. Below you could see the script #!/bin/sh LOGFILE=/home/transfield/mou/test.log # Find yesterday Date and copy files TODAY=$(date --date= +%F) YESTERDAY=$(date... (4 Replies)
Discussion started by: malikp
4 Replies

5. Shell Programming and Scripting

Getting issue while running it from cron while manually working fine

Hello, I am working one one script where I am using the below code which is using to connect with MKS client when I run my script manually it works effiecently i.e. it connects with MKS client but when I run it from CRON it doesn't connect. 1)Can some one tell when it is running from cron... (1 Reply)
Discussion started by: anuragpgtgerman
1 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

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

8. Shell Programming and Scripting

Script (with sql queries) not working using cron

Hi all, I have script, which performing sql queries and put output into file. When I run this script manually, its working fine, but when I want to schedule it with cron I am getting errors... I defined LD_LYBRARY_PATH and ,but no result. After I defined it, I am getting error: # more... (4 Replies)
Discussion started by: nypreH
4 Replies

9. Shell Programming and Scripting

Pattern not working in Cron script

Hi, I have written a shell script to list all the files with some pattern as below. <CODE> ls *_20151201*.txt <CODE> its working properly when ran manually. But when i tried to run by cronning it.. its throwing an error that no files exists with file name *_20151201*.txt But when I try... (3 Replies)
Discussion started by: ssk250
3 Replies

10. Shell Programming and Scripting

Automating pbrun /bin/su not working, whenever manually it is working using putty

I am trying to automate a script where I need to use pbrun /bin/su but for some reason it is not passing thru the pbrun as my code below. . ~/.bash_profile pbrun /bin/su - content c h 1 hpsvn up file path I am executing this from an external .sh file that is pointing to this scripts file... (14 Replies)
Discussion started by: jorgejac
14 Replies
PLYMOUTH(1)							   User Commands						       PLYMOUTH(1)

NAME
plymouth - Send commands to plymouthd SYNOPSIS
plymouth [OPTION...] plymouth COMMAND [OPTION...] DESCRIPTION
The plymouth sends commands to a running plymouthd. This is used during the boot process to control the display of the graphical boot splash. OPTIONS
The following options are understood. These options are supported for compatibility with the old rhgb-client interface, and have been replaced by the commands that are described in the next section. --help Show summary of options. --debug Enable verbose debug logging. --get-splash-plugin-path Get directory where splash plugins are installed. --newroot=[STRING] Tell plymouthd that the new root filesystem is mounted. --quit Tell plymouthd to quit. --ping Check if plymouthd is running. --has-active-vt Check if plymouthd has an active vt. --sysinit Tell plymouthd root filesystem is mounted read-write. --show-splash Show the splash screen. --hide-splash Hide the splash screen. --ask-for-password Ask the user for a password. --ignore-keystroke=[STRING] Remove sensitivity to a keystroke. --update=[STRING] Tell plymouthd an update about boot progress. --details Tell plymouthd there were errors during boot. --wait Wait for plymouthd to quit. COMMANDS
The following commands are understood: change-mode OPTION Change the operation mode. --boot-up Start the system up --shutdown Shutting the system up --updates Applying updates system-update OPTION Tell plymouthd about boot progress. --progress=INTEGER The percentage progress of the updates update OPTION Tell plymouthd about boot status changes. --status=STRING Tell plymouthd the current boot status update-root-fs OPTION Tell plymouthd about root filesystem changes. --new-root-dir=STRING Root filesystem is about to change --read-write Root filesystem is no longer read-only show-splash Tell plymouthd to show splash screen. hide-splash Tell plymouthd to hide splash screen. ask-for-password OPTION Ask the user for a password. --command=STRING Command to send password to via standard input --prompt=STRING Message to display when asking for password --number-of-tries=INTEGER Number of times to ask before giving up (requires --command) --dont-pause-progress Don't pause boot progress bar while asking ask-question Ask the user a question. --command=STRING Command to send the answer to via standard input --prompt=STRING Message to display when asking the question --dont-pause-progress Don't pause boot progress bar while asking display-message OPTION Display a message. --text=STRING The message text hide-message OPTION Hide a message. --text=STRING The message text watch-keystroke OPTION Become sensitive to a keystroke. --command=STRING Command to send keystroke to via standard input --keys=STRING Keys to become sensitive to ignore-keystroke OPTION Remove sensitivity to a keystroke. --keys=STRING Keys to remove sensitivitiy from pause-progress Pause boot progress bar. unpause-progress Unpause boot progress bar. report-error Tell plymouthd there were errors during boot. deactivate Tell plymouthd to deactivate. reactivate Tell plymouthd to reactivate. quit OPTION Tell plymouthd to quit. --retain-splash Don't explicitly hide boot splash on exit SEE ALSO
grub(8), plymouth(8), plymouthd(8), http://www.freedesktop.org/wiki/Software/Plymouth plymouth PLYMOUTH(1)
All times are GMT -4. The time now is 04:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy