04-05-2013
Passing a variable
It did not work failed saying unexpected <<
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am new to unix. Is their a way to pass the output of the line below to a variable var1.
ls -1t | head -1.
I am trying something like var1=ls -1t | head -1, but I get error.
Situation is: I get file everyday through FTP in my unix box. I have to write a script that picks up first... (1 Reply)
Discussion started by: rkumar28
1 Replies
2. Shell Programming and Scripting
Hi ,
I have three funcions f1, f2 and f3 .
f1 calls f2 and f2 calls f3 .
I have a global variable "period" which i want to pass to f3 .
Can i pass the variable directly in the definition of f3 ?
Pls help .
sars (4 Replies)
Discussion started by: sars
4 Replies
3. Shell Programming and Scripting
How do i get the value of the variable from the called script(script2) to the calling script(script1) in ksh ?
I've given portion of the script here to explain the problem.
Portion of Script 1
=============
-----
-----
tmp=`a.ksh p1 p2 p3`
if then
# error processing
fi
-----... (10 Replies)
Discussion started by: rajarkumar
10 Replies
4. Shell Programming and Scripting
Hello All,
I have a Bash Script and an Expect script that together will SSH to another server and
do some stuff there... From within the Bash Script I process the Command Line Arguments,
which are Required Args and Optional Args.
When I call the Expect script from the Bash Script, I pass... (4 Replies)
Discussion started by: mrm5102
4 Replies
5. Shell Programming and Scripting
consider the script below
sh /opt/hqe/hqapi1-client-5.0.0/bin/hqapi.sh alert list --host=localhost --port=7443 --user=hqadmin --password=hqadmin --secure=true >/tmp/alerts.xml
awk -F'' '{for(i=1;i<=NF;i++){
if($i=="Alert id") {
if(id!="")
if(dt!=""){
cmd="sh someScript.sh... (2 Replies)
Discussion started by: vivek d r
2 Replies
6. Shell Programming and Scripting
Input are file and file1
file contains
store.bal
product.bal
category.bal
admin.bal
file1 contains
flip.store.bal ::FFFF:BADC:CD28,::FFFF:558E:11C5,6,8,2,1,::FFFF:81C8:CA8B,::FFFF:BADC:CD28,1,0,0,0,::FFFF:81C8:11C5,2,1,0,0,::FFFF:81DC:3111,1,0,1,0
store.bal.... (2 Replies)
Discussion started by: veeruasu
2 Replies
7. Shell Programming and Scripting
Hi all,
Warm regards!
I am in a difficult situation here. I have been trying to create a shell script which calls another shell script inside. Here is a simplified version of the same.
Calling Script.
#!/bin/ksh
# want to run as a different process... (6 Replies)
Discussion started by: LoneRanger
6 Replies
8. Shell Programming and Scripting
Not a good post. (1 Reply)
Discussion started by: bash_in_my_head
1 Replies
9. Shell Programming and Scripting
I'm trying to automatically pass user input values into a script that is being called from another script, below is my current script and I added a comment next to the script where it asks user to enter input value.
Thanks,
mbak
#!/bin/ksh
echo " Adding disks for DB server then Enter YES... (2 Replies)
Discussion started by: mbak
2 Replies
10. Shell Programming and Scripting
Hi,
I have some 2000 names in a table like below.
Java
Oracle/SQL
ANSI SQL
SQL,DWH,DB
DB&Java
And by using for loop in my code i am able to get a single word but if there is any special character or space then it is considering as a next line.
I have to execute the below queries in... (10 Replies)
Discussion started by: Samah
10 Replies
crash(8v) crash(8v)
Name
crash - what happens when the system crashes
Description
This section explains what happens when the system crashes and shows how to analyze crash dumps.
When the system crashes voluntarily it prints a message on the console in the form:
panic: explanation
The system takes a dump on a mass storage peripheral device or the network, and then invokes an automatic reboot procedure as described in
Unless there is some unexpected inconsistency in the state of the file systems due to hardware or software failure, the system then resumes
multi-user operations. If auto-reboot is disabled, the system halts at this point.
The system has a large number of internal consistency checks; if one of these fails, it prints a short message indicating which one failed.
The most common cause of system failures is hardware failure. In all cases there is the possibility that hardware or software error pro-
duced the message in some unexpected way. These messages are the ones you are likely to encounter:
IO err in push
hard IO err in swap
The system encountered an error when trying to write to the paging device or an error in reading critical information from a disk
drive. Fix your disk if it is broken or unreliable.
timeout table overflow
Due to the current data structure, running out of entries causes a crash. If this happens, make the timeout table bigger.
Exception Condition
An unexpected system error has occurred. The exception types are as follows:
---------------------------------------------------------------
Mnemonic Description
---------------------------------------------------------------
INT External interrupt
MOD TLB modification exception
TLBL TLB miss exception (load or instruction fetch)
TLBS TLB miss exception (store)
AdEL Address error exception (load or instruction fetch)
AdES Address error exception (store)
IBE Bus error exception (for an instruction fetch)
DBE Bus error exception (for a data load or store)
Sys Sys call exception
Bp Breakpoint exception
CpU Coprocessor unusable exception
Ovf Arithmetic overflow exception
---------------------------------------------------------------
KSP not valid
This indicates either a problem in the system or failing hardware.
init died
The system initialization process has exited. The only solution is the automatic reboot procedure described in Until this is done,
new users cannot log in.
When the system crashes, it attempts to write an image of memory into the back end of the primary swap area. After the system is rebooted,
the program runs and preserves a copy of this core image and the current system in a specified directory for later access. See for
details.
To analyze a dump, you should begin by running with the flag on the core dump.
See Also
dbx(1), reboot(8), savecore(8)
RISC crash(8v)