![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Script behaving differently on two servers | mhssatya | UNIX for Advanced & Expert Users | 5 | 09-13-2006 03:28 PM |
| csplit not behaving | badg3r | UNIX for Advanced & Expert Users | 2 | 05-25-2006 07:36 AM |
| ftp application behaving erratically | diganta | UNIX for Advanced & Expert Users | 7 | 02-02-2005 10:23 AM |
| Script behaving differently in Crontab.. | newtoxinu | UNIX for Advanced & Expert Users | 1 | 09-30-2004 05:00 PM |
| Why does cron run this differently? | natter | Shell Programming and Scripting | 6 | 01-06-2003 12:36 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Script behaving differently in Crontab..
Hi,
I wrote a script to stop a process,truncate its log files and re-start the process... We are using Progress Software in Unix ( Sun Sparc) When ever I start this progress program , it should kick off a C pgm in the background.. The script work perfectly fine when I run it from command prompt.. When I scheduled it from crontab, the stopping and truncating log files works fine.. When it starts of the progress program, that time also it looks OK.. But when I do (ps -ef ) for that C program, I found two instances of the C program running.. One is the actual C program which I wanted it to run and other is the same C program with slightly different process name... > ps -ef | grep 'myprocess' admin1 .......... myprocess admin1 .......... usr/bin/sh -C myprocess Also, the second process is the parent for first process... Any ideas why it is working differently in crontab ?? If my explanation is not clear, let me know... I could post some screen dumps which might explain more... Thanks in advance, |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|