10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I trying to write a script in bash that take a list of users in “fileA” and searches another list user in “fileB” if the user does not exist in “file B” write the user to another file “file C”.
Please note “fileA” and “fileB” contains over 1000 users
... (2 Replies)
Discussion started by: hassan1
2. Shell Programming and Scripting
I have a shell script which I use to login to the server from the client and then from the server I run a bunch of other scripts to complete my task. I am having problems with the script below-
while read line
connections=`echo $line | cut -d " " -f 1`
period=`echo... (3 Replies)
Discussion started by: joydeep4u
3. Shell Programming and Scripting
I have the following code:
open (OUTPUT_FILE, ">>/usr/users/rovolis/PREPAID/CC/TCG/PP.$cyear$cmonth$cday.txt")||die "$!";
82 open (OUTPUT_FILE2, ">>/usr/users/rovolis/PREPAID/CC/TCG/PR.$cyear$cmonth$cday.txt")||die "$!";
83 # ... (0 Replies)
Discussion started by: chriss_58
4. Shell Programming and Scripting
echo hello world
this is what i got in a text file called ss1.
i type "chmod 755 ss1.txt" to make it executable.
then when i type
"ss1 command not found"
what am i doing wrong? (19 Replies)
Discussion started by: pantelis
5. Shell Programming and Scripting
I am reading data from the database and writing to temporary file in the below format.
/usr/home/dfusr/lib/xerces.jar: ... (2 Replies)
Discussion started by: rajeshorpu
6. Shell Programming and Scripting
I have a script that writes and read DATA in/from a socket, but i have a great problem while writing.
My socket is created in this way:
fconfigure $connection -encoding binary -translation binary -blocking 1
And the writer procedure is this one:
... (0 Replies)
Discussion started by: trutoman
7. UNIX for Advanced & Expert Users
Hi, I have an issue with the file writing...
It is, Suppose that if I am writing some data to a file... and at the same time another user has opened the file and want to write in to the file(writing to the file at the same time)...the another has to know that someone has opened the file, mean... (3 Replies)
Discussion started by: vijay4b7
I'm trying to write a function which opens a file pointer and writes one of the function parameters into the file, however for some reason Im getting a core dump error.
The code is as below
void WriteToFile(char *file_name, char *data)
/*disk_name_size is a... (10 Replies)
Discussion started by: JamesGoh
9. UNIX for Dummies Questions & Answers
I'm having trouble with trying to create a script which calculates the grade of a student and the marks out of 300.
The grades are:
60-69% credit pass
80-100% high distinction
less than 0 or greater than 100 displays error message.
My... (1 Reply)
Discussion started by: CompNoob
Our system is having a server and multiple clients. We are monitoring the client FDs using select() system call in HP-UX.
After establishing connection-using socket with the remote client, before start sending the data we are checking the status of socket using select( ) call. For first 16... (0 Replies)
Discussion started by: AshokG