6 More Discussions You Might Find Interesting
1. Programming
Hi All,
I am having a strange issue. Below is the code snippet. If I print fraction * (double)::pow((double)10,scalingFactor) which is a double I am getting 154 when I type cast that to int as (int)( ((fraction) * ((double)::pow((double)10,scalingFactor)))) it is becoming 153. Not sure why... (0 Replies)
Discussion started by: arunkumar_mca
0 Replies
2. Shell Programming and Scripting
Hey guys.
1st problem:
I have to create a script for every hour run a script against a DB and then produce results to log file and eventually email.
I have to manipulate the date command from something like this
date '+%F %H:%M.%s'
which produces the below the below result
2014-08-01... (2 Replies)
Discussion started by: mo_VERTICASQL
2 Replies
3. Shell Programming and Scripting
hi guys,
i m new to shell script..
i dont know how to type cast string into integers and i mention my problem below..
date="21091988"
month=$((${date:2:2})) # extract the month from previous date variable
temp=$(($month*23))
when i am trying to calculate the temp value i got the... (5 Replies)
Discussion started by: raadhaakrishnan
5 Replies
4. Programming
Is it permitted to type-cast a member variable passed in as a parameter in a member const method ..
I am doing something like :
in a
return-type method () const {
variable other = long(member variable)
}
this other assigned variable is not updating and I wonder if type-casting in such... (1 Reply)
Discussion started by: shriyer123
1 Replies
5. UNIX for Advanced & Expert Users
I am having a doubt with type casting in C. Very often in network programming, we have something like this:
char *data = ...;
struct iphdr *ip = (struct iphdr *) data;
where iphdr is define in netinet/ip.h.
Let us say that the size of the content of held by 'data' is much more than... (1 Reply)
Discussion started by: radiatejava
1 Replies
6. Shell Programming and Scripting
Hi I'm trying to write a script which takes an integer as input and checks for files with size > input and displays it on screen.
The code I've tried :
echo 'Enter the min file size expected'
read filesize
du -ah <folder name> | awk -F: '$1>int(filesize) {print $1,$2)' is always... (28 Replies)
Discussion started by: vivek.bharadwaj
28 Replies
suspend(1) User Commands suspend(1)
NAME
suspend - shell built-in function to halt the current shell
SYNOPSIS
sh
suspend
csh
suspend
ksh
suspend
DESCRIPTION
sh
Stops the execution of the current shell (but not if it is the login shell).
csh
Stop the shell in its tracks, much as if it had been sent a stop signal with ^Z. This is most often used to stop shells started by su.
ksh
Stops the execution of the current shell (but not if it is the login shell).
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
csh(1), kill(1), ksh(1), sh(1), su(1M), attributes(5)
SunOS 5.10 15 Apr 1994 suspend(1)