10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm basically looking for the ksh equivalent of bash's PROMPT_COMMAND="history -r", where simply redrawing the command prompt in a terminal will cause ksh to reload the history file.
At the risk of sounding incredibly lazy (in which case I would be guilty as charged), I've noticed that if I have... (13 Replies)
Discussion started by: DevuanFan
13 Replies
2. Shell Programming and Scripting
Hi,
I use the below script that will find n record the entire directory structure for a given folder.
bash-3.2$ more mkdir.sh
find . -type d |while read rec
do
echo "mkdir $rec"
echo "chmod -R 777 $rec"
#done
done >> moht.sh
The problem is the folder i m running this script... (10 Replies)
Discussion started by: mohtashims
10 Replies
3. Shell Programming and Scripting
I am making a bash script right now and am running into an issue. As I am new to scripting, I do not know exactly what to do to get what I'm looking for in my script.
Essentially, my script will automatically input VRFY common names after nc
Example:
nc 192.168.248.133 25
VRFY Allison... (2 Replies)
Discussion started by: ksrhayward
2 Replies
4. Solaris
Hi All,
I am not able to get the command prompt after entering the login password on solaris server
Only access is through console.
Server type : sun4u sparc SUNW,Netra-T12
bsnl-north-in > ssh 10.147.17.207 jtoin
Connecting to 10.147.17.207 as user jtoin
Password:
Last login: Wed Mar 5... (1 Reply)
Discussion started by: sandeep_kmehra
1 Replies
5. Shell Programming and Scripting
Hi,
i want to run the command in remote server through ssh and every time when i run the script its asking to enter the password. I dnt want to enter the password, when i enter the ip address and directly the command shuld execute.
Script:
#!/bin/bash
echo "Enter Server IP Address:"
read... (2 Replies)
Discussion started by: bapu1981
2 Replies
6. Solaris
Hi all,
I have just installed Solaris 10 on an old Fujitsu Primepower 650 which has been wiped clean. I haven't installed anything apart from the OS yet, so the machine is 99% idle.
I get long delays when logging in, first after entering the id then another long delay after entering a valid... (8 Replies)
Discussion started by: longjon
8 Replies
7. Shell Programming and Scripting
Does screen command run forever?
Suppose I have following command inserted at my putty shell followed by screen
# screen
# export JAVA_HOME=/usr/java/jdk1.6.0_21
# export ANT_HOME=/usr/ant
# export PATH=$PATH:$JAVA_HOME/bin:$ANT_HOME/bin
# export... (0 Replies)
Discussion started by: ninadgac
0 Replies
8. UNIX for Dummies Questions & Answers
Hi,
Im trying to create a command template here. how can i issue this long command in one enter?
echo -e "\nIssue or Request - Analysis Summary \n\nMemory Utilization Utilization Threshold\n\nResolution Summary\n\n1. check Server Info";echo "$(uname -a;uptime;date)"; echo -e "\n\n2. check... (9 Replies)
Discussion started by: jinslick25
9 Replies
9. UNIX for Advanced & Expert Users
I would like to use SFTP from command line without entering userid and password.
Here is what I have gathered and did.
1) Create a public and private key pair for the protocol you want to use.
To create a key pair for use by SSH2, enter:
ssh-keygen -t dsa
I did that and got... (7 Replies)
Discussion started by: Hangman2
7 Replies
10. Shell Programming and Scripting
Hello,
AIM: Need to test for the presence of some files (*.F) in a certain directory.
having a problem with this line is ksh:
if test `ls $SOMEDIR/dir/*.F \
2>/dev/null|wc -w` -eq 0
Basically testing for the presence of *.F files in the specified directory. If the return... (4 Replies)
Discussion started by: enoch
4 Replies