Request help with C/C++, Perl, PHP, Python, Ruby, Bash Scripts, or other Linux programming/scripting related issues
Hello...I am a beginner
I want to write a script name myuseradd
I want to add user without useing useradd command
1- Check if user is root....
I'm trying to run this small shell script
tom:~> cat -n mysystem.sh
8 echo "Today's date is `date`, this is week `date +"%V"`."
Please could someone advise, how I can resolve the sed problem that I have.
I'm creating the following variable :
Please could someone advise, how can i expand a variable in SED, see my command below :
I have an U-boot source code in working. I need to give support for setenv and printenv commands.
Can anyone guide me in this regard.
I jut was tryingt o migrate my script from Linux to BSD but it seams thta fetch doesnt wont to coop w. me.
Here is waht i had under linux:
I want to monitor the CPU usage of a process which running for one hour, I know top can show all the stuff on screen but I want to record...
We are in the process of converting from HP Unix to Linux (bash), and one of our shell scripts is giving an error on the first line of the...
A not very complicated code: linked as
LDLIBS += -lpthread -static -L../_lib -lA -lB -lC -lrt
I have a problem with gzopen when I open 2000 gz files (c++). It is fine if I open about 1000 gz files. Do any one have experiences about...
I am new to Unix scripting, I have requirement where I need to read the key value pair from config file.
Sample Config file:
hello every one
I have a problem that drove me crazy last couple days I know I have to use loop structures but I can't figure out how to put the...
Hi, I currently have about 60 files in a directory, and I need to concatenate them in order. They have names such as:
I am trying to write a program to walk the directory tree (millions of files and directories) and exclude any directory that is named ".snapshot".
I am not sure if is possible, but I would like to known if is possible to use gdb inside my code to generate a file with all debug...
from a bash script, i invoke a program ./foobar that creates a logfile.txt . Now I want to view the contents of logfile.txt while ./foobar is...
I am trying to run a simple script to let me know if rtorrent is running under a user.
I want ask about C.
If i declare a variable as double, during the code can i change this type to other? I do not mean the casting but i change the...
im compiling using g++,the compiler is reporting error as
undefined reference to `svm_destroy_model'
here is my sample code
This has been my very old curiosity since beginning with Linux.
Why so man documentation using "`" as the starting quote instead of just use...
Use this control to limit the display of threads to those newer than the specified time frame.
Allows you to choose the data by which the thread list will be sorted.
Order threads in...
Note: when sorting by date, 'descending order' will show the newest results first.