10 More Discussions You Might Find Interesting
1. Programming
//Find the root of the equation (x^2)-2 by bisection method.
#include<iostream>
using namespace std;
double a,x;
double f(double x)
{
return ((x*x)-2);
} //Suppose the function is (x*x)-2.
void calcx(double a1,double b1)
{
x =... (2 Replies)
Discussion started by: poonam.gaigole
2 Replies
2. Shell Programming and Scripting
How can we create new directory/Or execute command on remote unix machine from another unix machine.
We can use SSH command to execute command on remote machine but problem is that ssh will prompt for password before executing command.
My requirment is to execute command without manual... (1 Reply)
Discussion started by: pasricha.kunal
1 Replies
3. UNIX for Dummies Questions & Answers
Hello All,
Good day! This is my first UNIX post. :D
Anyways, I would like to seek help from you guys if you know of any UNIX command that will skip a warning message once it is encountered but continue to run the execution.
Ok here's the situation in general:
An encypted file is sent to... (2 Replies)
Discussion started by: jennah_rekka
2 Replies
4. UNIX for Advanced & Expert Users
Hello,
i was wondering if you could assist me in the following situation:
i am trying to queue a group execution commands (same command but different parameters) submited from an openVMS system to a Unix system (HP UX). The commands should run in sequence; the next starts after prev finish... (5 Replies)
Discussion started by: wede23
5 Replies
5. Programming
Hi,
I wanted to know if i can write a program using switches and signals, etc to trace execution of other unix program which calls c program internally.
If yes how? If not with signals and switches then are there any other methods apart from debugging with gdb/dbx. (3 Replies)
Discussion started by: jiten_hegde
3 Replies
6. UNIX for Dummies Questions & Answers
hai friend,
I am new to linux... I have to develop C program using unix command and i know the SYSTEM command.. But i need other then SYSTEM comand, plz send me the sample code....
Thank you..
sundar (1 Reply)
Discussion started by: sundar.lsr
1 Replies
7. UNIX for Dummies Questions & Answers
i am using unix os and my program is divided in two text files .:):)
how to compile and make one executable file, using unix command. (1 Reply)
Discussion started by: alokmishra8
1 Replies
8. Programming
Hi my friends
I am beginner unix programmer I have written small c++ program in text editor and I have change it mode to 555 to make it executable file to use it in unix O.P.
#include<iostream.h>
main()
{
cout<<"Hello World";
}
but some syntax erroe came for <<
can any one help... (5 Replies)
Discussion started by: bintaleb
5 Replies
9. Programming
i wanted to display the man pages of any command in unix from a c program.can some one help me plzzzzzz. (2 Replies)
Discussion started by: spanduu
2 Replies
10. UNIX for Dummies Questions & Answers
I was wondering if it was possible to call a unix command directly from a Java program during run-time. This command could very very basic e.g. "ps -ef" returned as a string, all I need is a starting place so if anyone has any suggestion or examples I would be very grateful (2 Replies)
Discussion started by: QUartz Ite
2 Replies
SETSID(1) User Commands SETSID(1)
NAME
setsid - run a program in a new session
SYNOPSIS
setsid [options] program [arguments]
DESCRIPTION
setsid runs a program in a new session. The command calls fork(2) if already a process group leader. Otherwise, it executes a program in
the current process.
OPTIONS
-c, --ctty
Set the controlling terminal to the current one.
-w, --wait
Wait for the execution of the program to end, and return the exit value of this program as the return value of setsid.
-V, --version
Display version information and exit.
-h, --help
Display help text and exit.
SEE ALSO
setsid(2)
AUTHOR
Rick Sladkey <jrs@world.std.com>
AVAILABILITY
The setsid command is part of the util-linux package and is available from https://www.kernel.org/pub/linux/utils/util-linux/.
util-linux July 2014 SETSID(1)