![]() |
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 |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
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 02:28 PM |
| csplit not behaving | badg3r | UNIX for Advanced & Expert Users | 2 | 05-25-2006 06: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 | Shell Programming and Scripting | 4 | 10-01-2004 01:22 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..
I posted this in Shell scripting... maybe I'll try it in this forum..
***************** 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, ************************ |
|
|||||
|
We have some rules here. Please read them. Note in particular:
(4) Do not 'bump up' questions if they are not answered promptly. No duplicate or cross-posting and do not report a post where your goal is to get an answer more quickly. (5) Search the forums database with your keywords before asking. This question is the most commonly asked question about cron. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|