10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i want to copy with rsync a specified (sub)-directory and the according folders and files below. my test failed :
cd /dir
/usr/bin/rsync -ravz -e ssh --include='*/' --include='*/00/*/*' --exclude='*' . remote_host:/tmp
i want to copy in these example the directory "00" and the according... (2 Replies)
Discussion started by: bora99
2 Replies
2. UNIX for Dummies Questions & Answers
Hi, i would like to create user defined commands.
e,g:
if an user executes ,
mkdircd test then a directory called test should be created and it should be cd to test.
How i can create the command mkdircd with below action:
mkdir $1 && cd $1.
Please help me in achieving this (7 Replies)
Discussion started by: pandeesh
7 Replies
3. Shell Programming and Scripting
Hi there
rather than doing this
if (defined($new)) {
unless (defined($hostname)) {
print "ERROR: If using --new, you must define a hostname\n";
exit 1;
}
}
is there some way of doing a "notdefined" (i appreciate there is no such thing :))
if... (5 Replies)
Discussion started by: hcclnoodles
5 Replies
4. AIX
Hello everyone
I have a problem with one of my drives in an aix box. The library is a 3583 and Aix is 5.3 TL9
The problem was that the fibre channel not work and I change the fibre but when I logging to the aix box I got this in the rmt3
lsdev | grep rmt
rmt0 Available 03-08-00-6,0... (4 Replies)
Discussion started by: lo-lp-kl
4 Replies
5. Shell Programming and Scripting
In my code, I know I can write...
if ( defined &test_sub ) {
test_sub();
} else {
print "Subroutine doesn't exist";
}
This tests the existence of the test_sub subroutine without actually calling it.
If, though, I replace test_sub with a package method...
if ( defined... (1 Reply)
Discussion started by: JerryHone
1 Replies
6. Shell Programming and Scripting
I am trying to mount the ramdisk for sorting, and i get the message "ramdisk already defined." What exactly is /dev/ramdisk0 and is it safe to remove it?
# command
sudo -S mktd 60 <<EOF
initiate
EOF
# block of code for mktd
...
&& {
print "ramdisk already defined."
... (1 Reply)
Discussion started by: ChicagoBlues
1 Replies
7. Shell Programming and Scripting
Dear Friends,
I need a help regarding User defined function in shell script.
My problem is as follows:
my_func.sh
my_funcI(){
grep 'mystring' I.dat
}
my_funcQ(){
grep 'mystring' Q.dat
}
myfuncI
myfuncQ
But As both the function has same function only the... (11 Replies)
Discussion started by: user_prady
11 Replies
8. Shell Programming and Scripting
Hi,
PLMN=APPLE
awk ' /is missing/ { flag=1;print > "fruit_output_m1.txt" }
END {
if( flag != 1 )
print "No $PLMN in the store." > "fruit_output_n1.txt"
} ' fruit_result.txt
The output is:
No $PLMN in the store.
Should be:
No APPLE in the store.
Please help!! (1 Reply)
Discussion started by: happyv
1 Replies
9. Linux
moved to correct thread (0 Replies)
Discussion started by: alien12
0 Replies
10. UNIX for Dummies Questions & Answers
I want to add a new IP service which executes a script on SCO OS5.
I have amended /etc/services and added to port number (3333)
I have amended /etc/inetd.conf and added a line for this service but I can't get it to execute my own shell script
When I telnet to the IP address on port 3333 I... (1 Reply)
Discussion started by: markdrury
1 Replies