10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I have found this script on internet that can be used to execute local script remotely
# usage: runremote.sh localscript remoteuser remotehost arg1 arg2 ...
# escape the arguments
declare -a args
... (4 Replies)
Discussion started by: mukulverma2408
2. Shell Programming and Scripting
Shell Script Gurus,
I am writing a shell script which needs User ID's to pass as an Arguments in command line while executing.
Can this be doable? I've never done this, If you give a sample script that would be helpful, Thanks. (1 Reply)
Discussion started by: shekar777
3. Shell Programming and Scripting
Guys i have 3 files,
but i want to compare and diff only the 2nd column
for i in `cat domain.tx`
whois $i| sed -n '/Registry Registrant ID:/,/Registrant Email:/p' > $path/$i.registrant
whois $i| sed -n '/Registry Admin ID:/,/Admin Email:/p' > $path/$i.admin... (10 Replies)
Discussion started by: kenshinhimura
4. Shell Programming and Scripting
I have a requirement for creating a MQ (queue) where the inputs has to be passed as arguments.
Running the script as below
./hi.sh "Servername" "QueueManagername" "QueuecreationCommand"
echo "Welcome to $1"
runmqsc $2 < $3
But the queue creation command is... (9 Replies)
Discussion started by: Anusha M
5. Shell Programming and Scripting
When i use ssh command to execute local script on remote server , I am unable to do it.
Please let me know how this can be done in ksh
ssh username@hostname "$req $dte" < run_script.sh (2 Replies)
Discussion started by: lalitpct
6. Shell Programming and Scripting
I am trying to paste together two files which are like this-
The paste command would work by default for this case, but when there are cases where the number of entries are different in each file. for eg:
I want to make it such that the odd... (11 Replies)
Discussion started by: jamie_123
7. Shell Programming and Scripting
I am new to shell scripting.
please help me to find out the solution.
I need a script where we need to read the text file(consists of all file names) and get the file names one by one
and append the date suffix for each file name as 'yyyymmdd' .
Then search each file if exists... (1 Reply)
Discussion started by: Lucky123
8. Shell Programming and Scripting
Moderator, please, delete this topic (1 Reply)
Discussion started by: optik77
9. Shell Programming and Scripting
svn diff does not work very well with 2 local folders, so I am trying to do this diff using diff locally.
since there's a bunch of meta files in an svn directory, I want to do a diff that excludes everything EXCEPT *.java files. there seems to be only an --exclude option, so I'm not sure... (3 Replies)
Discussion started by: ackbarr
10. Shell Programming and Scripting
I want to compare two files. All records in file 2 that are not in file 1 should be output to file 3.
file 3 should have
I have looked at diff, bdiff, cmp, comm, diff3 without any luck! (2 Replies)
Discussion started by: blt123