10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
well , i am facing this problem.. i have tried a few sample codes but there isn't any solution . could anyone please give a sample code as of how to do this...
Please see the below details...and read the details carefully.
I have written some code, logic is
1)from... (4 Replies)
Discussion started by: aish11
2. Homework & Coursework Questions
I have an assignment from school to write a shell program in linux. the idea is to exercise fork() and execv() functions.. the shell program is supposed to be the master and every command that the user prints will run in a new process. we also need to try running the command in every... (1 Reply)
Discussion started by: r3vive
3. UNIX for Dummies Questions & Answers
Thanks so much vivekraj (0 Replies)
Discussion started by: andrew1400
4. Shell Programming and Scripting
I am trying to get a file from an ftp server and i have the list of files which needs to be get from the ftp server.
grep unix_prg*.* log.txt > log1.txt
log1.txt (which has the list of files)
06-29-09 00:00AM 3550258 unix_prg090629
06-28-09 07:00PM ... (7 Replies)
Discussion started by: raghav1982
5. Shell Programming and Scripting
Iam having the following situation:
Iam reading one file and taking that line one by one and searching that word in file2 using grep command
cat file1| while read line
grep $line file2 >> outputfile.dat
now iam having file 1
s... (13 Replies)
Discussion started by: nivas
I'm having a requirement where I need to call a C program from a shell script and return the value from the C program to shell script.
I refered a thread in this forum. But using that command in the code, it is throwing an error
Error: bash:... (24 Replies)
Discussion started by: venkatesh_sasi
7. Shell Programming and Scripting
I want to print the value of variables a1, a2, a3 in for loop in the following program:
But actually I get a1,a2,a3 as the output not the "this is printed"
So the main question is if I... (3 Replies)
Discussion started by: adgarg
Iam calling a C program from a Unix shell script. The (C) program reads encrypted username/password from a text file , decrypts and returns the decrypted string.
Is there any way i can return the decrypted string to Unix shell program.
My shell script uses the output of the program to... (11 Replies)
Discussion started by: satguyz
9. Shell Programming and Scripting
How to write a shell script which takes 3 strings as positional parameters,first and second are file names and third is a directory.if the two files exist in `pwd` and they contain a specific pattern and their size is greater than 32 bytes,moves these files into directory? (1 Reply)
Discussion started by: rameshparsa
10. Shell Programming and Scripting
I made a shell script to allow user to ftp file to windows shared drive.
Here is part of my code within my shell script:
/usr/bin/ftpmtc $usr $pswd $jobno
$UCB/echo "user $1 $2" > $inst_file
$UCB/echo "cd prod" >> $inst_file... (7 Replies)
Discussion started by: whatisthis