Sponsored Content
Top Forums Shell Programming and Scripting Help it works but its to SLOW Post 302180763 by Garlandxj on Tuesday 1st of April 2008 05:21:19 AM
Old 04-01-2008
Well its fast

A few minor changes
I wrote a small script that calls the other as a back ground process.

cat devices.txt | while read device
do

export device
jobs
( devicev2 &)
done


This actually works wonderful. I Get the data from all 700 devices in under 1 minute. Closer to 35 seconds. There is a down side however. Both processors spike to 90 % utilization. Not to bad since it processes all the data so quickly. I have purchased a book on shell scripting and hopefully my "Style" will improve quickly.

One quick question: To limit this to 100 devices per batch (to keep from killing the processors) how would i go about doing that. I have been playing all night with different coding and I seem to get it wrong every time. A nudge in the right direction would be great.

Thanks again for all your help
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

slow ftp

On one of of solaris 7 boxes whenever i telnet or ftp it takes sometime before i get the prompt...any quick ideas where I should look...Thanks (3 Replies)
Discussion started by: suntan
3 Replies

2. Post Here to Contact Site Administrators and Moderators

Slow

The site has gone slow for quite some time... Can you do somethin abt it (2 Replies)
Discussion started by: DPAI
2 Replies

3. SCO

Slow cd response

Hi All We have one SCO Server here and it never gives us any trouble. Until Now!! Well its not earth shattering but we have one user who is complaining of a very slow response time when changing to his Home Directory. Other users who have similar profiles are OK. I have su'd to this user and I can... (0 Replies)
Discussion started by: JohnOB
0 Replies

4. UNIX for Dummies Questions & Answers

scp is slow

All of the sudden scp got really slow ... from 2-3 seconds to 30 seconds. This happened for 5 hours, and then it went back to running fast. Why? If I use the -q qualifier which "Disables the progress meter" could this have any adverse effect? Thanks (1 Reply)
Discussion started by: tomstone_98
1 Replies

5. UNIX for Dummies Questions & Answers

How ls | wc -l works?

ls displays files in tabbed output. Say a directory contains 3 files. ls will list all 3 in one line. So, I expect ls | wc -l to give 1, but it counts the nr of files and gives 3. Can someone explain how this works? (3 Replies)
Discussion started by: krishmaths
3 Replies

6. Programming

how this works?

pls explain me how this works.... DECODE (SUBSTR (field, 1, 1),'''', '''''' || field || '''','''' || field || '''') here field is a column in an oracle table.... (7 Replies)
Discussion started by: vijay_0209
7 Replies

7. UNIX for Dummies Questions & Answers

>./a.pl works, >a.pl - does not

When I try to execute script, I get message: >aa.pl zsh: command not found: aa.pl but >./aa.pl works OK. What to change in environment to force the former way to work? Thank you, Alex Z (4 Replies)
Discussion started by: zzol
4 Replies

8. UNIX for Advanced & Expert Users

How this works?

I have a program............ #include<stdio.h> #include<unistd.h> main() { if(fork == 0) { printf("Hi every body:p!!!!!!!!!!"); } } This program works with out any error. here fork is not a system call. It just act as a variable.But how it works without declaring it? What data type it... (19 Replies)
Discussion started by: carolsanjeevi
19 Replies
devfs(7FS)							   File Systems 							devfs(7FS)

NAME
devfs - Devices file system DESCRIPTION
The devfs filesystem manages a name space of all devices under the Solaris operating environment and is mounted during boot on the /devices name space. The /devices name space is dynamic and reflects the current state of accessible devices under the Solaris operating environment. The names of all attached device instances are present under /devices. The content under /devices is under the exclusive control of the devfs filesystem and cannot be changed. The system may be configured to include a device in one of two ways: By means of dynamic reconfiguration (DR), using, for example, cfgadm(1M). For devices driven by driver.conf(4) enumeration, edit the driver.conf file to add a new entry, then use update_drv(1M) to cause the system to re-read the driver.conf file and thereby enumerate the instance. The device may be attached through a number of system calls and programs, including open(2), stat(2) and ls(1). During device attach, the device driver typically creates minor nodes corresponding to the device via ddi_create_minor_node(9F). If the attach is successful, one or more minor nodes referring to the device are created under /devices. Operations like mknod(2), mkdir(2) and creat(2) are not supported in /devices. FILES
/devices Mount point for devfs file system SEE ALSO
devfsadm(1M), vfstab(4), attach(9E) NOTES
The /devices name space cannot be unmounted. All content at or below the /devices name space is an implementation artifact and subject to incompatible change or removal without notifi- cation. SunOS 5.10 26 Oct 2004 devfs(7FS)
All times are GMT -4. The time now is 01:18 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy