-->
Linux
Menu
Home
AU Complete
Question Papers
Syllabus
Subject Notes
Internal Marks
Internal Exam Timetable
AU Nov Dec 2018 Timetable
Anna University Updates
Anna University Results
School Study Materials
SSLC Study Materials
HSC Study Materials
Home
Programs
write a program for every 10 seconds tell the number of users logged in .
write a program for every 10 seconds tell the number of users logged in .
Rejinpaul
6:47 PM
Share to Facebook
Share to X
write a program for every 10 seconds tell the number of users logged in .
main()
{
int pid;
pid=fork();
if (pid==0)
{
for(;;)
{
sleep(10);
printf(“ the number of users logged in are :”);
system(“who | wc –l”);
}
}
}
Newer Post
Older Post
Related Post
0 Comments
Subscribe to:
Post Comments (Atom)
Popular Posts
how to Shutting Down or Rebooting fedora Linux in command mode
Shutting Down or Rebooting Linux Look at all these shutdown and reboot commands: shutdown, halt, init 0, poweroff, Ctrl-Alt-Delete, etc. ...
how to create Files and Directories in linux fedora environment
Creating Files and Directories You want to organize your files by placing them in directories. But where do directories come from? For th...
List of Linux basic commands
List of commands here
Unix/Linux Command Reference
How to crack bios password in windows Xp , 95.98
Here is the best way to crack the bios password in win 95/98: Follow the steps below: 1) Boot up windows. 2) go to dos-prompt or go to ...
How to convert hard drive into NTFS format
Converting to NTFS Your hard drive must be formatted with a file system such as FAT, FAT32 or NTFS so that Windows can be installed on to ...
how to add new user in linux fedora
Adding a User To add a user do the following: # groupadd john # useradd -g john -c “John Doe” -m -d /home/john -s /bin/bash john # p...
how to Copy, Move, and Rename Files and Directories in fedora linux
Copying, Moving, and Renaming Files and Directories You've got directories, you've got files. How do you get the files into the...
History of Unix-Linux
Linux is a Unix-like computer operating system family which uses the Linux kernel. Linux is one of the most prominent examples of free so...
how to Change Text on XP Start Button
Step 1 - Modify Explorer.exe File In order to make the changes, the file explorer.exe located at C:\Windows needs to be edited. Since expl...
Recent Posts
0 Comments