I am currently upgrading our software to support ipv6 and in the meantime I'm expanding hostname/ip fields to the max hostname size. In sun documentation it seems like this can be up to 1025 (netdb.h:#define NI_MAXHOST 1025 - this is the recommended hostname allocation define), but when I pass a hostname of over 255 to getaddrinfo I get ...
Hi All,
I am beginner to UNIX,UNIX Shell Scripting.
Can you please guide me through any excellent sites for unix(which are easy to understand),some study materials(tutorials),video tutorials.
Please help!!
Thanks!
...
Can you throw some points on how it is a best way, best practice
to install web application on Unixes?
Like:
where to place app and its bases and so for,
how to configure to be secure and easy to backup,
etc
For example I know such suggestion -- to set uniq user for each app.
App in question is Jira on FreeBSD, but more...
Hai anyone please give me some tutorial URL for freeswitch. I am a beginner for it.
Please help me.
Thanks in advance
...
Can sha1sum return the same results for two files that are different ?
I am asking this both from a theoretical and practical point of view.
...
On unix system when you call the accept system call, does the newly created socket have a different port number from the listening socket?
...
I have a korn shell script main.cs. This scripts currently working fine when running it via job scheduler. In preparation to make some changes to this script, I renamed main.cs file to test.cs file without changing the content. I also made sure that test.cs file has same permission as main.cs.
But when attempting to run test.cs file via ...
I am trying to write a file with format - "id file_absolute_path" which basically lists down all the files recursively in a folder and give an identifier to each file listed like 1,2,3,4.
I can get the absolute path of the files recursively using the following command:
ls -d -1 $PWD/**/*/*
However, I am unable to give an identifier ...
I have a solution, mostly C#, but with a few VC++ projects, that is pushed through our standard release process (perl and bash scripts on Unix boxes). Currently the initiative is to validate DLL and EXE versions as they pass through the process. All the versioning is set so that File Version is of the format $Id: $ (between the colon and...
Hi!
I've written two programs: the first, the "writer", creates a FIFO and writes data into it. The second one, the "reader" runs in background and looks for data in the FIFO. Once data is there, the reader reads it out.
If I start e.g. two writers and two readers, they all can write/read into/from the same FIFO. How can I restrict it ...
I am looking into Javascript programming without a browser. I want to run scripts from the Linux or Mac OS X command line, much like we run any other scripting language (ruby, php, perl, python...)
$ javascript my_javascript_code.js
I looked into spider monkey (Mozilla) and v8 (Google), but both of these appear to be embedded.
Is a...
I have a file to execute in Ksh written by someone. It has a set of commands to execute in sqlplus.
It starts with,
sqlplus -s $UP <<- END
followed by a set of ddl commands such as create,drop,etc.,
When I execute the file in the shell, I get the error in the starting line quoted above.
I understand "-s" starts the sqlplus in silent...
I tried running a script using nohup like,
nohup script.sh &
When I tried
ps -ef | grep "script.sh"
I couldn't find it there except for the grep which is being run with that string as a parameter.
Am I doing it right?. Does this mean that the process has indeed finished execution?
Thanks.
...
I want to get the alert message for every execution of the scp command. If some one access my file using the scp command, that time I have to receive one mail. How can I achieve this. Please help me.
...
After five years of professional Java (and to a lesser extent, Python) programming and slowly feeling my CS education slip away, I decided I wanted to broaden my horizons / general usefulness to the world and do something that feels more (to me) like I really have an influence over the machine. I chose to learn C and Unix programming si...
I want to grep an environment variable
env | grep ABC_IJK[1,2]
currenlty defined variables are like this
ABC_IJK1=123
ABC_IJK1_XYZ=sn123:345
ABC_IJK2=999
ABC_IJK2_XYZ=sn321:999
I only want to get only this
ABC_IJK1=123
ABC_IJK2=999
get number of connections sum them(not 123 + 999) and save in N1 (this one has 2 connection)
...
I deployed to a cluster, and realized that each node holds its own independant database.
I am currently using Engine Yard as my host.
How can I create a sharesystem so that all my nodes/instances share the same file system?
Some people recommend S3, but this may not be the best choice because my users need to be able to edit their fil...
I have lines of data which I want to parse.
The data looks like this:
a score=216 expect=1.05e-06
a score=180 expect=0.0394
What I want to do is to have a subroutine
that parse them and return 2 values (score and expect) for
each line.
However this function of mine doesn't seem to work:
def scoreEvalFromMaf(mafLines):
for word i...
How do I append a string to all the files in a directory that starts with a particular string?
I tried,
cat mysig >> F*
But instead of appending contents of mysig to all files starting with F, it creates a file named "F*". Obviously wildcard doesn't seem to work.
Any alternatives?
Thanks in advance.
Edit:
Also how do I delete this n...
According to http://www.lagmonster.org/docs/vi2.html
the command :p would make vi go to the previous file. Unfortunately, this isn't working for me. However :n works and goes to the next page. What should I use to go to the previous file?
For :p I get the message,
Hit Return to continue
and it stays in the same page.
Thanks.
Edit:
I a...