lol.. and thank you.
For fun i ran lsof on the pid of xorg - because i though bash would be too boring, but now figured i used a /usr/lib64/libdrm_radeon.so.1.0.1 while having a nvidia gpu.
It probably needed that library to check if it's a radeon.
Quote:
Anyway, it sounds like the numbers of FD could be 'infite' (as in: integer max), but on the other hand, in the use(d range) example here, its always FD numbers less or equal than the available VT's.
VT as in virtual terminal? Not really, that's unrelated, the descriptor numbers are anonymous and independent. Descriptor 0 in your program is not the same as descriptor 0 in another program, and descriptor 0 could mean anything or nothing -- a terminal, a file, a device, a FIFO, a UNIX domain socket, etc, etc, or might not even be open. When a program open()'s something, it's assigned the next available number, but after that a program can use dup2() to re-number it into whatever it pleases. This is what the shell does when you open a file into descriptor 5.
This is how input redirection works, by the way -- arrange for descriptors 0 / 1 / 2 to point somewhere before creating the new process.
Quote:
So my question is, what is the max number of adress-able file descriptors?
This is only a theoretical max. This is often limited to something saner per-user in the same way memory and processes are.
Last edited by Corona688; 01-21-2015 at 01:33 PM..
Hi All,
I have made a forloop as given below.
if ]; then
echo -e "serv_AAA_DS.ldif file created and will be splitted into 8 smaller files for ldapadd \n"
sh ./file_splitter.sh
for (( w=1; w <= 8; ++w ))
do
nohup ldapadd -x -c -h PL0 -p 389 -D "$LDAP_USER" -w... (8 Replies)
Hi All,
I'm unable to load the data using sql loader where there are double quotes within the double quotes As these are optionally enclosed by double quotes.
Sample Data :
"221100",138.00,"D","0019/1477","44012075","49938","49938/15043000","Television - 22" Refurbished - Airwave","Supply... (6 Replies)
Hi All ,
We have source data file as csv file and since data could contain commas ,each attribute is quoted into double quotes.However problem is that some of the attributa data also contain double quotes which is converted to double double quote while creating csv file
XLs data :
... (2 Replies)
Hi Team,
I have the following statement in my script
"chgrp dw $$DSSDATW5/W5DW_RUNNING.out"
Which throws the error "chgrp: 50528606DSSDATW5/W5DW_RUNNING.out: No such file or directory"
Can you please let me know what does this $$ refers to (2 Replies)
Hi Froum.
I have tried in vain to find a solution for this problem - I'm trying to replace any double quotes within a quoted string with a single quote, leaving everything else as is.
I have the following data:
Before:
... (32 Replies)
file1 contents:
jandoe1
johndoe1
file2 contents:
jandoe
johndoe
my output file names file3, and has contents as:
This is jandoe1
my script:
cat file1 | while read line1
cat file2 | while read line2
do
do
sed -e 's/${line1}/${line2}/g' file3 > file3
done
done (5 Replies)
Hi,
I have data as
"01/22/97-"aaaaaaaaaaaaaaaaa""aaa""aabbbbbbbbcccccc""zbcd""dddddddddeeeeeeeeefffffff"
I want to remove only the Consequitive double quotes and not the one which occurs single.
My O/P must be ... (2 Replies)
hey all,
i made a simple .sh like this:
echo "<style media="screen" type="text/css">@import url("main.css");</style>"
but the output is:
<style media=screen type=text/css>@import url(main.css);</style>
i want to keep double-quotes, can anyone help me?
thanks (3 Replies)
This is the code and I'm wondering why line 14: a = ... and line 16: b = ... is wrong.
This is the first time I've tried to use this. Please help me.
#include <stdio.h>
#include <math.h>
// The link and how the double pow is used.
//
// http://www.nextdawn.nl/c-reference/pow.php
//... (2 Replies)
Hello,
I would like to dual subtitutes variables.
I tried
$serv="combo"
combo_TYPE="mop"
TYPENAME="$serv_TYPE"
Now, I'd like to get "mop" from TYPENAME
echo "${${TYPENAME}}"
I have a bad substitution error
:) (1 Reply)