10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Got a thousand servers. I created a script to say hello on every server. But is there a script or whatever that will issue a yes on every key checking.
for i in `cat myserverlist`
The authenticity of host 'server1 (18.104.22.168)' can't be... (7 Replies)
Discussion started by: invinzin21
2. Shell Programming and Scripting
This is a script which to create an opvn user, I want which answer automatically to a certain part so, I try this, it works without the red part but I must type manually.. :
## Environnement ##
## Paths ##
rsa_dir="etc/openvpn/easy-rsa"... (10 Replies)
Discussion started by: Arnaudh78
3. Shell Programming and Scripting
I am looking for a way to start a script and have it prompt for a password that will be used later on in the script to SSH to another host and to SFTP. I don't want the password to be hard coded. Below is my script with the actual IP's and usernames removed.
#!/usr/bin/expect -f... (2 Replies)
Discussion started by: jbrass
4. Shell Programming and Scripting
I'm working with AIX 6.1
I would like to ssh to a server without entering password ( to monitor something) but there's no way to do that by authentication keys, so I need to write a script which can ssh to that server without entering password ( no need to hide passsword in the script, just an... (9 Replies)
Discussion started by: bobochacha29
5. Shell Programming and Scripting
I have a shell script to run set of commands every week . I dont have a root access on the server but I can run the commands using pbrun
each time I run the script , it asks me for my password then it executes fine.
Password... (7 Replies)
Discussion started by: Sara_84
6. UNIX for Dummies Questions & Answers
In the script i am passing a command from script which is called from cron. When this command is called from cron the unix prompt asks for password. Can we automatically enter the password when promted(if the password is hardcoded in script)??
Please let me know how to enter the password... (4 Replies)
Discussion started by: abhi_n123
7. Shell Programming and Scripting
I'm using rsync with the "-e ssh" option so of course it asks for a password using a prompt. Is there a way to tell a script to expect a prompt, wait for it, and give a password when it arrives?
There is a way to give rsync a password as part of its options using a file, but it only works with... (2 Replies)
Discussion started by: davidstvz
8. Shell Programming and Scripting
We need to create a script which will invoke a command with diffrent parameters.
The command invoked needs the password. So how automatically we can enter password in the script to the command?
for par in `cat parfile` do
# Here is the main command... (1 Reply)
Discussion started by: sourabhsharma
9. Shell Programming and Scripting
I want to write a script which will automatically take password
sequentially from a file after every 10 days.
i.e the passwd command should be executed automatically every 10 days and it should take the input from the password file sequentially.
Has any1 got a solution?????????????? (1 Reply)
Discussion started by: rahulrathod
10. UNIX for Dummies Questions & Answers
I would like to create a script that logs into a list of several servers 50+ and changes my password all at once.
Every 60 days we are required to login to each system and change our passwords or else they expire and our login account is deleted.
I have an idea on how I could do this but... (4 Replies)
Discussion started by: darthur
fmt(1) General Commands Manual fmt(1)
fmt - format text
The command is a simple text formatter that fills and joins lines to produce output lines of (up to) the number of characters specified in
the width option. The default width is 72. concatenates the arguments. If none are given, formats text from the standard input.
Blank lines are preserved in the output, as is the spacing between words. does not fill lines beginning with a period for compatibility
with Nor does it fill lines starting with
Indentation is preserved in the output and input lines with differing indentation are not joined (unless is used).
can also be used as an in-line text filter for the command:
reformats the text between the cursor location and the end of the paragraph.
recognizes the following options:
Crown margin mode.
Preserve the indentation of the first two lines within a paragraph and align the left margin of each subsequent line with that
of the second line. This is useful for tagged paragraphs.
Split lines only.
Do not join short lines to form longer ones. This prevents sample lines of code, and other such "formatted" text, from being
Fill output lines to up to
The width option is acceptable for BSD compatibility, but it may go away in future releases.