10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi,
is there a way i can execute a batch file containing ftp commands like we execute sftp batch file.
sftp -b batchfile user@server > output
how to create a batch file for ftp executing command and how to run the batch file from a shell script? (2 Replies)
Discussion started by: Little
2 Replies
2. Shell Programming and Scripting
I made a configuration file for my shell script in that all the values that the shell scipt needs, are defined, but I don't know how to let the shell script use those defined variables.
Thank you for your help :) (3 Replies)
Discussion started by: Alkali
3 Replies
3. Shell Programming and Scripting
Mysql log has something like below:
I need a bash shell script that will do the following:
1) The script will scan the mysql.log file constantly in real time (something like tail -F mysql.log)
2) If it encounters 5 consecutive identical lines then it would invoke some commands (say... (4 Replies)
Discussion started by: proactiveaditya
4 Replies
4. UNIX for Dummies Questions & Answers
:)hello people
i am working on some kind of PBX and i have list of telephone numbers inside a file, i have to insert these numbers into the correct command and then telnet to a remote server and execute these commands.
i can read the telephone numbers and insert them into the command with no... (0 Replies)
Discussion started by: auma78
0 Replies
5. Shell Programming and Scripting
Hi,
I have one text file input.txt, which has folders path as follows:
/home/user/automate/abc
/home/user/automate/abc/xyz
/home/user/automate/test
/home/user/automate/test2
/home/user/automate/test2/abc/Main
In those folders i have .svn folder.
1) First i want to remove .svn like rm... (5 Replies)
Discussion started by: dragon.1431
5 Replies
6. Shell Programming and Scripting
Please help with this simple example. I can not figure out how to do it. A file named “job” contains only this one line:var=5I need a script to read the job file and execute it as a command. This is my attempt (it does not work):#!/bin/sh
exec < job
echo "var = $var"output should read “var = 5”... (5 Replies)
Discussion started by: wolfv
5 Replies
7. Shell Programming and Scripting
I want to log into a remote server transfer over a new config and then backup the existing config, replace with the new config.
I am not sure if I can do this with BASH scripting.
I have set up password less login by adding my public key to authorized_keys file, it works.
I am a little... (1 Reply)
Discussion started by: bash_in_my_head
1 Replies
8. UNIX for Dummies Questions & Answers
Hii
When i am using the following command for checking the ctrl-m characters am getting "Substitution pattern match failed" error.
Actually i jus want to check and not to substitute.
Please suggest me as whats wrong in the below command.
1,$s/Ctrl+vCtrl+m//g
Thanks (9 Replies)
Discussion started by: ladtony
9 Replies
9. Shell Programming and Scripting
Execute some commands in script and store result in excel sheet
Kindly help me........... (1 Reply)
Discussion started by: Computer_baby
1 Replies
10. Shell Programming and Scripting
Hello ,
I am trying to print the footer of evry file in the given directory with xargs command like follows
ls -1 | xargs -I {} gzcat {} | tail -1
now problem with this is only last file foooter is getting printed as " | tail -1 " is getting executed for the last file.
I know this can... (4 Replies)
Discussion started by: nilesrex
4 Replies