Hi,
I have a situation where I need a parameter value to pick from a file can I use it in this way
File_name.txt contains names of files
a.jpg
b.jpg
c.jpg
now I want to assign the file name to parameter
FTP_INPUT_FILE=a.jpg for first run once it is processed we can delete onve they are... (2 Replies)
Could any one tell me how to do get result in fraction in shell script.
I am using expr for division of 2 number but it is giving Quitent.
I need it in full fraction value.
please helpp. how to do it using "dc" or "bc" (5 Replies)
hi,
I have a script that will logon to a database siebel and do the select query and then get the result in command prompt of unix.Below the script.
#!/bin/ksh
. $HOME/conf/systemProperties/EnvSetup.properties
#set -x
while read i
do
echo $i
connect1=`sqlplus -silent... (1 Reply)
Since I'm not an expert in shell scripting, I have question on sending script result to file. I have script like this...
if condition=0: then
echo "service is not running" | mail -s "Server Status" uname@companyname
fi
sleep 10
if configtion=1: then
echo "service is not running" | mail -s... (3 Replies)
I hv a file --am executing a script which is giving me unexpected results
COntents of file:
f1
CMT_AP1_CONT:/opt/sybase/syboc125:150:ASE12_5::Y:UX:
CMT_AP1:/opt/sybase/syboc125:150:ASE12_5::Y:UX
f1.tmp
CMT_AP1_CONT:/opt/sybase/syboc125:150:ASE12_5::Y:UX:... (2 Replies)
Hi all,
Say I have a script named script.sh. What it does is to print a line like "abc"
#! /usr/bin/ksh
print "abc"
I would like to pass this value to an external variable,
var1="script.sh"
However when I echo $var1 I got "script.sh" itself instead of the result?
Thanks (3 Replies)
Hi everyone and nice to meet you :)
I'm having some issues with a script I'm writing.
It's probably most chaotic, I'm no ksh guru, but the idea is to extract an ID with that query, spool it into a file, and read that file making the ID a variable. This has to be done for every row extracted by... (10 Replies)
Hello,
How can I run this script every 1 hour and save its result to result.txt
ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}'
Regards
Shaan (5 Replies)
Hi,
I wrote the below script to get the query result from a Syabase DB.
isql -s -U **** -P **** SYBASE SERVERNAME
USE ***(Database name in Sybase)
@command.sql
But im not getting the output. Can anyone help me on this (2 Replies)
Hi Gurus,
I have requirement to compare current result with previous reuslt.
The sample case is below.
1 job1 1
1 job2 2
1 job3 3
2 job_a1 1
2 job_a2 2
2 job_a3 3
3 job_b1 1
3 job_b2 2
for above sample file, GID is group ID, for input line, the job run... (1 Reply)
Discussion started by: ken6503
1 Replies
LEARN ABOUT SUNOS
uptime
uptime(1) User Commands uptime(1)NAME
uptime - show how long the system has been up
SYNOPSIS
uptime
DESCRIPTION
The uptime command prints the current time, the length of time the system has been up, and the average number of jobs in the run queue over
the last 1, 5 and 15 minutes. It is, essentially, the first line of a w(1) command.
EXAMPLES
Below is an example of the output uptime provides:
example% uptime
10:47am up 27 day(s), 50 mins, 1 user, load average: 0.18, 0.26, 0.20
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO w(1), who(1), whodo(1M), attributes(5)NOTES
who -b gives the time the system was last booted.
SunOS 5.10 18 Mar 1994 uptime(1)