08-21-2001
unix & C doubts
Hi,
I have a few doubt here :
1) I want to run a 3 different 'C' programs in same session simulteneously (parelelly). if I make a shell, it is running one after another, I mean it shout run in 3 processors.
2) In 'C' program, how can I assing a value of the unix commant
cat a.txt|wc -l into a c pgrogram variable cnt.
Kindly give the solution to :kkodava@maxis.com.my
Thanks
Krishna
9 More Discussions You Might Find Interesting
1. Solaris
Hi,
Can anyone tell me the correct answers for these:
1. You have 4 instances running on the same UNIX box. How can you determine which shared memory and semaphores are associated with which instance?
2. How do you increase the OS limitation for open files (LINUX and/or Solaris)?
Thanks:p (1 Reply)
Discussion started by: dreams5617
1 Replies
2. Programming
As all of you know whenever a program "say a.c" is complied in linux using the gcc or the cc compiler..it shows the list of errors ( if the program contains any).. i want to modify the compier script so as to list the no of errors only and not the description about the error..like" parse error " ... (1 Reply)
Discussion started by: vrs
1 Replies
3. UNIX for Dummies Questions & Answers
Hello All,
I am very new to UNIX. Please help me to find answers of below questions.
1.A script is saved with name ls. When we execute the script what it will execute?
a) Will execute ls command
b) Will execute the script
c) Will execute script or command depends on the path
... (2 Replies)
Discussion started by: aswathy
2 Replies
4. Forum Support Area for Unregistered Users & Account Problems
How to post a new thread (Regarding Unix related doubts) in Unix Forums.
I registered my id but I am unable to post my Questions to Forum.
Thanks & Regards,
indusri (1 Reply)
Discussion started by: indusri
1 Replies
5. UNIX for Dummies Questions & Answers
Write unix command to list or view auto links (0 Replies)
Discussion started by: ashishshah.engg
0 Replies
6. UNIX for Dummies Questions & Answers
Hi all,
I have few question related to Unix environment and commands :
1. what is .chrc file contain and if it is not present then what happens.
2. what is .login file contain,in which dir it is present and what all other uses are their for this file
3. how and who calls .profile when you... (2 Replies)
Discussion started by: ravi.sadani19
2 Replies
7. UNIX for Dummies Questions & Answers
Hi All,
1. how and who calls .profile when you login
2. what is PPID and what means by PPID = 0
Thanks in Advance (2 Replies)
Discussion started by: ravi.sadani19
2 Replies
8. Shell Programming and Scripting
Hi All,
I have a few questions which I am unable to solve/answer.
Please help me with them:-
Command in Unix to determine if a Host is connected to the internet ?
If a parenet process is killed what happens to the child process?
How do I print the first 10 lines of a file in the... (1 Reply)
Discussion started by: shubhranshu
1 Replies
9. Solaris
i hav a file like this
-rwxr-xr-x 1 root controlm 4141 Nov 13 2006 /opt/scripts/prod/fvaauditlos.ksh
-rwxr-xr-x 1 root controlm 3958 Nov 13 2006 /opt/scripts/prod/fvaexpchbk1.ksh
-rwxr-xr-x 1 root controlm 6471 Nov 13 2006 /opt/scripts/prod/fvaexpchbk2.ksh... (24 Replies)
Discussion started by: p_satyambabu
24 Replies
LEARN ABOUT SUSE
gnome-session
GNOME-SESSION(1) General Commands Manual GNOME-SESSION(1)
NAME
gnome-session - Starts up the GNOME desktop environment
SYNOPSIS
gnome-session [--autostart=DIR] [--default-session-key=KEY] [--failsafe|-f] [--debug]
DESCRIPTION
The gnome-session program starts up the GNOME desktop environment. This command is typically executed by your login manager (either gdm,
xdm, or from your X startup scripts). It will load either your saved session, or it will provide a default session for the user as defined
by the system administrator (or the default GNOME installation on your system).
The default session is defined in the GConf keys under /desktop/gnome/session. When saving a session, gnome-session saves the currently
running applications in the $XDG_CONFIG_HOME/gnome-session/saved-session directory.
gnome-session is an X11R6 session manager. It can manage GNOME applications as well as any X11R6 SM compliant.
OPTIONS
The following options are supported:
--autostart=DIR
Start all applications defined in DIR, instead of starting the applications defined in /desktop/gnome/session/default_session, or
via the --default-session-key option. Multiple --autostart options can be passed.
--default-session-key=KEY
Sets the GConf key from which applications running a default session should be read to KEY. If not specificed, /desktop/gnome/ses-
sion/default_session will be used.
--failsafe
gnome-session will run in fail-safe mode. User-specified applications will not be started.
--debug
Enable debugging code.
ENVIRONMENT
gnome-session accepts all of the standard environment variables used by gnome programs, other than the SESSION_MANAGER environment vari-
able. gnome-session also sets several environment variables for the use of its child processes.
SESSION_MANAGER
This variable is used by session-manager aware clients to contact gnome-session.
DISPLAY
This variable is set to the X display being used by gnome-session. Note that if the --display option is used this might be different
from the setting of the environment variable when gnome-session is invoked.
SEE ALSO
gnome-session-properties(1) gnome-session-save(1) gnome-wm(1)
BUGS
If you find bugs in the gnome-session program, please report these on http://bugzilla.gnome.org.
GNOME GNOME-SESSION(1)