10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I need help in debug following script. can somebody help....!!!
#!/usr/bin/perl -w
use strict;
use Spreadsheet::WriteExcel;
# Create a new workbook called simple.xls and add a worksheet.
my $workbook = Spreadsheet::WriteExcel->new('simple.xls');
my $worksheet =... (1 Reply)
Discussion started by: chettyravi
1 Replies
2. Homework & Coursework Questions
I need help program in C... :create a program that runs two processes linked oven (1 Reply)
Discussion started by: gizmo16
1 Replies
3. Shell Programming and Scripting
Hi, I'm doing a script that generate some background process like
for file in `find $dir -type f -maxdepth 1 -mtime -1`;
do
exp="java -cp process.jar testing $file &"
eval $exp
echo $! #Get the PID
echo $(basename $file) >> log
done
Is there a way to know when those... (1 Reply)
Discussion started by: amondracorp
1 Replies
4. UNIX for Advanced & Expert Users
If we have 3 process to write to same log file at the same time like below. will it cause the data outdated because the multiple process writing same time? It this a safe way to keep the log for multiple process?
p1 >> test.log &;
p2 >> test.log &;
p3 >> test.log &
Thanks, (1 Reply)
Discussion started by: casttree
1 Replies
5. UNIX for Dummies Questions & Answers
Hello,
I'm a newbie in shell script.
So, i would like to create a shell script which take 2 IN parameters (PARAM1 and PARAM2).
This script need to create 2 files as :
I need to create this file /etc/apache2/sites-available/PARAM2 :
<VirtualHost *:80>
DocumentRoot "/home/PARAM1/www"... (0 Replies)
Discussion started by: chatlumo
0 Replies
6. Shell Programming and Scripting
Hi Guru's,
I have to write a shell script which groups file names based upon the certain matching string pattern, then creates the Tar file for that particular group of files and then zips the Tar file created for the respective group of files.
For example, In the given directory these files... (3 Replies)
Discussion started by: rahu_sg
3 Replies
7. UNIX for Dummies Questions & Answers
Please help. I am the beginner. Don't understand about archive file. How to create a directory for the files from each archive with name of directory which equivalent to the base name of the archive. eg I have file abc.txt. How can I create a directory name abc. Thank you (1 Reply)
Discussion started by: snail
1 Replies
8. Shell Programming and Scripting
I'm working with some code in php that creates a process and I want the main program to wait till that process is done running then come back and join.
<code>
$pid = pcntl_fork();
if ($pid == -1){
die('could not fork');
}
else if ($pid){
pcntl_wait($status);
}
else{
echo... (1 Reply)
Discussion started by: airon23bball
1 Replies
9. Programming
How can we create a background process programmatically?
One way I know of is to fork() and exit from the parent process, leaving the child running. It will run as a background process.
I would like to know if there are any other ways.
In perticular how are daemon processes created? (1 Reply)
Discussion started by: ipzig
1 Replies
10. Programming
I have an application that is multithreaded and concurrent. Multiple instances of the application must run at the same time.
Each thread in each process accesses shared resources. For this purpose I've employed Butenhof's read-write locks. Inter-process locking is based on fcntl. For example,... (3 Replies)
Discussion started by: adamb
3 Replies