10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Not every server I use has bash so I wanted to add an option to check if bash exists. This is what I tried. This is the error message it gives "-bash: '". It works before I add the and option.
if ; then
echo hi
source ~/.bashrc;
fi (6 Replies)
Discussion started by: cokedude
6 Replies
2. UNIX for Beginners Questions & Answers
topfunc()
{
top
}
topfunc
Here i used the top command inside a function,and i called the function.
when executing this bash file i get all the process which are using by the kernel
i just want to display only the first 5 running process.
is it possible? (7 Replies)
Discussion started by: Meeran Rizvi
7 Replies
3. Shell Programming and Scripting
Please find my below requirement and see if you can help me on this. I am looking for a shell script which can provide me the below output.
Manuall steps which i am doing now
1) First I source the File
$ . ./WC_env.sh
2) Execute the command
$ /app/oracle/product/mos/bin/mosotl -url... (2 Replies)
Discussion started by: sudheshpn@gmail
2 Replies
4. Shell Programming and Scripting
Hey All,
I am newbie on scripting and need some guidance from all the experts here.
I am working on one project where I will check the status/health of around ten (10) solaris 10 servers.
I have one central server from where I have already setup the passwordless SFTP and setup the cron... (1 Reply)
Discussion started by: supercops
1 Replies
5. Shell Programming and Scripting
I have a shell script which calls a sql script.
But in the output file I'm getting an additional '^L' character.
Please advise how this is to be handled.
spool /opt/oracle/DART/out/Indx_rebuild.out
SET SERVEROUTPUT ON
SET VERIFY OFF
SET HEADING OFF
SET NEWPAGE NONE
SELECT 'ALTER INDEX '||... (2 Replies)
Discussion started by: narayanv
2 Replies
6. Shell Programming and Scripting
I am new to shell scripting and doing a similar thing @ work
Stan:Smith:Detroit:MI
Jim:Jones:Farmington Hills:MI
Jack:Frost:Denver:CO
Sue:Apple:New York:NY
Cindy:Thompson:Battle Creek:MI
John:Smith:Denver:CO
George:Jones:New York:NY
Need to create a shell script This script will display... (1 Reply)
Discussion started by: jakemathew
1 Replies
7. Shell Programming and Scripting
Iam new to shell scripting,i have a text file in my $home directory mentioned below.
201249_BAN_EXCL.TXT
I need to refer the above file in my automated script but the number 201249 used to change every week.How can i refer to this file everyt time without renaming it manually?
Thanks in... (7 Replies)
Discussion started by: Jroyal
7 Replies
8. Shell Programming and Scripting
I just want to know, how do we calculate the months in shell scripting.
If i give the input as 20-01-2011, the output should be 20-02-2011, 20-03-2011 or 20-04-2011........
How do i get this ?
Cheers. (6 Replies)
Discussion started by: sachin24
6 Replies
9. Solaris
As I am new in UNIX , and I want to learn UNIX shell scripting.
where shall I get material for Scripting ( For basics fundamentals and production environmental scripts)
Kindly provide me ...................... (7 Replies)
Discussion started by: sunray
7 Replies
10. Shell Programming and Scripting
Hi,
I am new to Unix shell scripting.I have a requirement where I have to search for a particular file in a Unix directory based on some criterian of the content of the file.Actually there would be two files with same name and then I have zip them together and stoe in the same directory.
As... (1 Reply)
Discussion started by: Kunal Banerjee
1 Replies