9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
What am I doing wrong here?
$ cat test_sed.ksh
#!/usr/bin/ksh
var="sed -e \'6s/9/6/\' testfile.txt > testfile.txt.2"
$var
$ ./test_sed.ksh
sed: command garbled: \'6s/9/6/\'
Thank you! (4 Replies)
Discussion started by: ejianu
4 Replies
2. Red Hat
I am running a script that runs a loop and executes a command on ${i} until the end of the for loop.
From time to time the command generates an error ( which is good) for example ERROR0005:
How can I trap the error and send an email echoing the ${i} variable in the loop and the error ?
... (2 Replies)
Discussion started by: pcpinkerton
2 Replies
3. Shell Programming and Scripting
I got a task to do today, I want to write a script for the following
1) Archive log more than 2 days old
2) Number of days the current Archive logs present
3) Total number of archive logs
4) Size of each archive log
5) When was last successful backup happened?
Can I get a general script... (8 Replies)
Discussion started by: Rambo
8 Replies
4. Shell Programming and Scripting
Hi All
I have a problem with one of my scripts which checks for he status of an Oracle database.
Here's the script:
#!/bin/ksh
sqlplus -s '/nolog' <<EOF
connect / as sysdba
set heading off
spool db_status.txt
select OPEN_MODE from v\$database
/
exit
EOF
db_status=$(more... (4 Replies)
Discussion started by: huskie69
4 Replies
5. AIX
Hi,
We have just purchased an ibm Power 520 express box with AIX 6.1 preloaded onto it. Using a null modem cable we have connected this upto a Windows 2003 server. From this Windows 2003 server we can using hyperterminal connect to it. I can aslo connect to the Advanced System Management... (16 Replies)
Discussion started by: yfayyaz
16 Replies
6. Shell Programming and Scripting
I am trying to create a script to manipulate numerous file and at first I thought it would be a simple task but at this point i am ready to break my computer! I am new to unix scripting so hopefully someone out there thinks this is super easy and can help me out!
A sample of the problem file is... (2 Replies)
Discussion started by: theqcup
2 Replies
7. Shell Programming and Scripting
Hi all,
i m new to Unix shell scripting(ksh)
i have a requirement, can anyone help me out in this..
spec:
i need to move all the files landing in "X" directory to "Y" directory automatically everyday at a particular time.. (5 Replies)
Discussion started by: subbu
5 Replies
8. UNIX for Advanced & Expert Users
Today I logged as root on my HP-UX server and by mistake executed below command
# ksh -i vi
Then onwards for every root logging the ksh shell giving wired output to every command
e.g
# ls
kÚ
.brw_history
.brwpause
.brwtmp
: : :
1+~H4p+À+~KÑ
1+Ðè
d
15kÚ
1d+~èYÑd:ðè½h|À+~èY4:àh|À+
And so... (6 Replies)
Discussion started by: zing_foru
6 Replies
9. AIX
Hi all,
I am trying to get the authentication logs of FTP,Telnet,SSH,inetd from the syslog file. But my output for every type of authentications - success & failure keep differing everytime i view them.
The output does not show the priority code (emerg, or 0, in any case). How do I get the... (0 Replies)
Discussion started by: kamadana
0 Replies