10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to write a case condition for database backups.But I am unable to make the script to read input from command line .
while true ;do
read -p "Do You Wish To Take Database Backup ?? " yn
case $yn in
*) echo " YES take backup ";;
*) echo " NO BACKUP " ;;
... (9 Replies)
Discussion started by: rocking77
2. UNIX for Dummies Questions & Answers
i have page domain.com/form.php
the form fields on form.php are named:
and submit button is named: submit
i want to ask how the linux command will look like to submit the form filled with:
I tried various curl and... (5 Replies)
Discussion started by: postcd
3. Shell Programming and Scripting
Do we know how to read input file within awk script and send output toanother log file. All this needs to be in awk script, not in command line. I am running this awk through crontab.
} (5 Replies)
Discussion started by: random_thoughts
4. Shell Programming and Scripting
I am calling a Perl script in my shell script. When Perl script is executed it asks for a answer to be entered by user from terminal. How can i pass that value from my shell script ??
I know I can change perl script to default the answer but i dont have access to do that so only option i... (5 Replies)
Discussion started by: varun22486
5. Shell Programming and Scripting
We are having a java server which can run on command line and once initiated, it will prompt options to enter from 0 to 5. The java program kickoff respective operation once number is entered between 0 to 5. However i want to always enter "1" and write another shell program wrapper to start... (4 Replies)
Discussion started by: surya5kn
6. UNIX for Dummies Questions & Answers
1) I wrote a script and gave the desired permissions using "chmod 755 scriptname". Now if i edit the script file, why do i need to set the permission again? Didn't i set the permission attribute.. or if i edit the file, does the inode number of file changes?
2) I am running my unix on a server... (1 Reply)
Discussion started by: animesharma
7. Shell Programming and Scripting
Maybe this iscorrect forum for my question...
I should read one character at a fixed position from each line of the file. So how ??? should be substituted in the code below:
while read line ; do
done < $input_file
OK...I did get an... (0 Replies)
Discussion started by: arsii
8. Shell Programming and Scripting
I have two files.
text string one
text string two
text string three
I would like to use sed to read each line of file one and put it at the end of the summary line of file... (3 Replies)
Discussion started by: dolacap
9. Shell Programming and Scripting
I wish to automate the unix command 'su' through a shell script.
I would like to pass the content of a file as password to 'su' command.
My script is as below,
while read line
rpm -ivh $line
done < pwd.txt
where pwd.txt contains the password of... (6 Replies)
Discussion started by: little_wonder
10. Shell Programming and Scripting
Hi, I am trying to write a ftp script which will read a file for filenames and ftp those files to another server. Here's my ftp script, but it's scanning the current directory for file names.
My question is how can I pass multiple files (these files will have the name of data files that need to... (0 Replies)
Discussion started by: sajjad02