10 More Discussions You Might Find Interesting
1. Programming
Hi, I am complete new to C programming and shell scripting. I just wrote a simple C code to calculate integral using trapezoid rule. I am prompting user to pass me No. of equally spaced points , N , upper and lower limit. My code looks as follows so far:
#include<stdio.h>
#include<string.h>... (2 Replies)
Discussion started by: bjhjh
2 Replies
2. Shell Programming and Scripting
Hi,
I am trying to use sed to replace a file path within all the .lay (.txt) files in a folder. I feel that this should be easy but I can't get it to work no matter what i try.
I'm using cygwin.
For a .txt file containing the below line I want to replace this file path with a new one.
... (1 Reply)
Discussion started by: carlr
1 Replies
3. Shell Programming and Scripting
Hi all,
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-
#!/bin/bash
while read line
do
connections=`echo $line | cut -d " " -f 1`
period=`echo... (3 Replies)
Discussion started by: joydeep4u
3 Replies
4. Shell Programming and Scripting
hello,
i have a configuration file app.conf under /tmp, containing values like :
param1=/data/something
param2=/data/somethingelse
i have a bash script that has to list the files under the path that corresponds to param2 :
#!/bin/bash
dir=$(cat tmp/app.conf | grep param2 | sed ... (6 Replies)
Discussion started by: chaa
6 Replies
5. Shell Programming and Scripting
Hi All
I am reading data from the database and writing to temporary file in the below format.
1=XP|external_component|com.adp.meetingalertemail.processing.MeetingAlertEmail|EMAILALERTPUSH|32|4#XP |classpath|/usr/home/dfusr/lib/xalan.jar:
/usr/home/dfusr/lib/xerces.jar: ... (2 Replies)
Discussion started by: rajeshorpu
2 Replies
6. 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
3 Replies
7. Programming
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)
{
FILE *fptr;
/*disk_name_size is a... (10 Replies)
Discussion started by: JamesGoh
10 Replies
8. Shell Programming and Scripting
not required this time (6 Replies)
Discussion started by: Sandeep_Malik
6 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I have already read a lot of posts on sending attachments in unix...but none of them were of help for my problem...so here goes..
i wanna attach a text file and send to a mail id..used the following code :
uuencode "$File1" "$File1" ;|mail -s "$Mail_sub" abc@abc.com
it works... (2 Replies)
Discussion started by: ash22
2 Replies
10. Shell Programming and Scripting
How to pass a file path to open a file?
I am using cygwin.
I want to open a file from a particular path, say C:\Test\File1,. This file path is stored in a variable.
I am able to cat a file like this :
cat "c:\Test\File1"
but i want the same thing to happen in my script file through a variable... (3 Replies)
Discussion started by: sandeep_hi
3 Replies