in shell I can do
/usr/local/samba/bin/smbpasswd -s << EOF > /dev/null
$oldpasswd
$newpasswd
$verifypasswd
EOF
how to translate it to perl? simply add system seems does not work ...
system ("/usr/local/samba/bin/smbpasswd -s << EOF > /dev/null
$oldpasswd
$newpasswd
$verifypasswd
EOF
")...
I read some of the posts here, but still could not come up a very good and smart logic for my case using awk
goal is to find difference between two files (the added lines, the removed lines and the changed lines) (first column are unique entries while 2nd column may contain duplicate entries)...
Hi I got a problem on solaris 8 when using the telnet,
host1% telnet host2
Trying 138.123.128.144...
Connected to host2.cocome.com.
Escape character is '^]'.
SunOS 5.8
Connection to host2.cocome.com closed by foreign host.
It immediately disconnected,
checked all realated files that I...
I have a file contains all the names that i need to create directories for,
> more list
align_c_i_fix_out_reg[9]:D.sp
add_408_40_g121:A.sp
align_c_i_fix_out_reg[10]:D.sp
align_g1851:A0.sp
in sh i can do with no problem
#!/bin/sh
for var in `cat list`
do
mkdir tmp/"$var"
done
in ksh i...
Hi all,
is there a simple way in /bin/sh to append certain amount zeros at the begining of a string or at the end of a string.
say I want to add $var=5 zeros at the begining of the string "teststring", make it like "00000teststring"
and append $var=3 zeros at the end of the string...
hi experts,
how to make the following output to one line, use sed or other thoughts? thanks.
original file
network-IP
netmask-IP
location
want to make it look like this
location network-IP netmask-IP
Regards!
I cannot let my outlook resolved my username! always
says "the name cannot be resolved, operation failed"
when I assigning the outlook to an exchange server.
I checked TCP/IP setting, DNS .... almost everything.
I can ping my exchange server using hostname, that means
connection has...
i'm not familiar with openview, may i ask if i want to
monitor system performance say cpu, is there build-in
health rule for cpu in openview or i have to define it all by myself, for example, Alert alarm is generated when CPU
exceeds 1 swap-out, 10 page-ins, and 10 page-outs per
second, that...
hello guys,
could someone tell me how to implement this vpn:
via internet
client(win2k pro) ------------> vpn server (Linux) ----
-----------> win2k server -----------> use resources
right now i know how to do the client to vpn server (linux),
but any...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.