Sponsored Content
Top Forums Shell Programming and Scripting is Threading in shell script possible...? Post 302285472 by varungupta on Monday 9th of February 2009 03:24:12 AM
Old 02-09-2009
Quote:
Originally Posted by deepak_p86
Hi frnds,

I have once script which is executing the command on local and remote machine continuously and I m collecting the required logs in separate file.

Now, I m facing one issue...

One or two test get hang randomly.. and because of that script get hang in between.... Now to resolve this issue.. I m thinking to run each such test in thread... (Threading in shell script)

First of all let me know is threading is possible in shell script...
if Yes please guide me...

if NO.. let me know how can I resolve this issue...

hi

I think you can resolve the issue by involving fork() processes as they might run diff. set of processes in background.

Thanks
Varun GuptaSmilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

About threading

hai is unix a multithreading environment or multitasking environment? which one exist in UNIX? (1 Reply)
Discussion started by: rajashekaran
1 Replies

2. Programming

Multi-threading questions

I've been doing some reading lately about threading (Posix threads) and I'm really curious about a couple things that I've read. I'm not sure if many people here have threading experience, but I thought it would be nice to be able to discuss some questions about it. (For the record, I did... (1 Reply)
Discussion started by: DreamWarrior
1 Replies

3. Programming

Regarding Multi-Threading

Hi All, Here's my question I have a 385 MB file containing 5,000,000 records. I need to read from the file and load into a table. Initially i thought of doing it in a single thread (execution of a single program) but when calculated accounted 16 hours of time on a standard benchmark. Hence... (5 Replies)
Discussion started by: matrixmadhan
5 Replies

4. UNIX for Dummies Questions & Answers

Threading...

Sorry, i may be posting the wrong question in this forum... but just curious, suppose we have a set of pre-emptively scheduled processes. A process, B, is multi-threaded with user-level thread scheduling. If one of the threads has a long calculation before making a thread library call, does this... (2 Replies)
Discussion started by: ianlow
2 Replies

5. Programming

Multi threading?

I am not sure if multi threading is the correct term, but here is what I am trying to do. I have a while loop that displays the number 1, pauses, displays the number 2, pauses , displays the number 3 ad infinitum. It just keeps counting. While the screen displays the sequence of numbers counting... (4 Replies)
Discussion started by: enuenu
4 Replies

6. Programming

threading problem

#include <stdio.h> #include <stdlib.h> #include <pthread.h> void *print_message_function( void *ptr ); main() { pthread_t thread1, thread2; char *message1 = "Thread 1"; char *message2 = "Thread 2"; int iret1, iret2; /* Create independent threads each of... (3 Replies)
Discussion started by: vishy_85
3 Replies

7. Programming

Multi-threading

Hi, If we create 10 threads to invoke runQuery method at same time, Will queryProcessor will be overriden sometime or 10 different copies will be created? We are not using any sunchronzation mechnism in runQuery(). so there is not gurantee on QueryProcessor class variables right OR each 10... (1 Reply)
Discussion started by: jramesh1
1 Replies

8. Programming

Multi-threading

In this piece i implemented the gossip method. The first thread is invoked from inside the (msg is first sent from node -1 to 0 from main()) and the other threads are invoked from inside of the thread function itself. I used two mutexes and a condition variable to control the synchronization. ... (4 Replies)
Discussion started by: saman_glorious
4 Replies

9. Shell Programming and Scripting

Threading in unix

Hii all, Is there any way to use thread scripting in unix.?? i.e. running multiple command at same time ? Thankss (3 Replies)
Discussion started by: yashwantkumar
3 Replies

10. UNIX for Beginners Questions & Answers

Multi threading in UNIX

Hi, Can we apply multi threading in Unix. I am using bash shell. We have a generic script to load the data to table based on file input. For each file there is an individual table to load. For each file found in directory I want to load the data in parallel to target table using ... (3 Replies)
Discussion started by: vedanta
3 Replies
clamav-unofficial-sigs(8)					  SCRIPT COMMANDS					 clamav-unofficial-sigs(8)

NAME
clamav-unofficial-sigs - Download, test, and install third-party ClamAV signature databases. SYNOPSIS
clamav-unofficial-sigs [options] DESCRIPTION
clamav-unofficial-sigs is a shell script that updates the Sanesecurity, SecuriteInfo, MalwarePatrol, OITC, INetMsg and ScamNailer third- party signature databases for ClamAV. OPTIONS
This script follows the standard GNU command line syntax. A summary of the options is shown below. -b Add a bypass signature entry to local.ign in order to temporarily resolve a false-positive issue with a third-party signature. The script will monitor any entries it makes to local.ign and will automatically remove bypass entries if either the original signature has been modified or removed from the database. -c FILE-NAME Source configuration information from a different file. -d Decode a hexadecimal encoded string or an individual ClamAV 3rd-party signature for viewing. This will not decode image signatures nor the official signatures. -e Encode a entire input string in hexadecimal for signature usage in any *.ndb database. -f Encode a formated input string in hexadecimal that contains spacing field '{}, (), *', without encoding the spacing fields, for sig- nature usage in any '*.ndb' database. -g FILE-NAME Verify the GPG signature for a specific SaneSecurity database file. Only specify the filename as listed in the configuration file and the script will search for it in the work directory. -h Print the script help and usage information. -i Print system and script configuration information. -m Make a hexadecimal signature database file (*.ndb) from a clear text ascii file. Provides support for both full and formatted sig- natures. Additional information is provided when using the flag. -r Remove the clamav-unofficial-sigs script and all of its associated files, databases and work directories from the system. -s FILE-NAME Test the integrity of a third-party signature database with clamscan. Only specify the filename as listed in the configuration file and the script will search for it in the work directory. -t If HAM directory scanning is enabled in the script's configuration file, then output the names of any third-party signatures that triggered during the HAM directory scan. -v Print the script version and date information. SEE ALSO
clamd(8), clamscan(1) COPYRIGHT
Bill Landry <bill@inetmsg.com> LICENSE
BSD (Berkeley Software Distribution) BUGS
Report bugs to Bill Landry <bill@inetmsg.com> AUTHOR
Bill Landry <bill@inetmsg.com> Version 3.7.1 June 6, 2010 clamav-unofficial-sigs(8)
All times are GMT -4. The time now is 11:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy