I am new to HP-UX.
I have an 8GB drive that is my root drive, contained in a Volume Group.
I would like to clone that drive to another drive, which is 18.4GB. The other drive is not in a volume group.
I am using this simple command:# dd if=/dev/dsk/c0t6d0 of=/dev/dsk/c0t5d0The command... (4 Replies)
Hi
I want to display "echo command value in loop" in single line. My requirement is to show the input file (test_1.txt) like the output file (test_2.txt) given below.
Input file :test_1.txt
a1|b1|4|5
a1|b1|42|9
a2|b2|32|25
a1|b1|2|5
a3|b3|4|8
a2|b2|14|6
Output file:test_2.txt... (2 Replies)
We have script like this in the .bash_profile..
#-# determine if session is interactive or in background
if ]; then
while true; do
read -p "Do you wish to load profile yes or no?" yn
case $yn in
* ) source /opt/oracle/.profile; break;;
* ) break;;
*... (2 Replies)
Hello,
Can some one help me with do-while loop command and writing the out put to a file. Below is the command I want to use.
Command: netstat -an |grep 1421 |grep "ESTABLISHED" |wc -l
thanks in advance. (11 Replies)
I am trying to connect to Windows server via Linux server through a script and run two commands " cd and ls " But its giving me error saying " could not start the program" followed by the command name i specify e g : "cd"
i am trying in this manner "
ssh username@servername "cd... (5 Replies)
Hi Experts,
I am using the below code for lftp with for loop but getting error at line 18.
Not able to understand if am using the for loop wrongly.
#!/bin/bash
FILE='/home/user/d.txt'
FILEName=/home/user/Test/HostName.txt
for HOST in $(awk '{ print $0}' $FILEName);do
... (5 Replies)
Hi all,
I am newbie to linux environment. I was trying to run an .so file manually which in turn call a method in bin folder.
Command given,
XXX_MODULES=libxxx.so /opt/servicename/bin/methodname -Le -c /opt/servicename/etc/methodname/methodname.conf -n -C -t -m ""
When i tried to... (1 Reply)
Hi all,
I am newbie to linux environment. I was trying to run an .so file manually which in turn call a method in bin folder.
Command given,
XXX_MODULES=libxxx.so /opt/servicename/bin/methodname -Le -c /opt/servicename/etc/methodname/methodname.conf -n -C -t -m ""
When i tried to execute... (1 Reply)
If a command is not found, e.g. nawk, this is how I fix the problem
] && NAWK=/usr/bin/gawk
] && NAWK=/usr/bin/nawk
] && NAWK=/usr/bin/awkI use $NAWK an the set the appropriate value based on the system it runs.
How can I implement a similar fix for a command found but illegal argument.... (6 Replies)