Search Results

Search: Posts Made By: dsw
12,029
Posted By dsw
Hi John, Please see my earlier post,...
Hi John,

Please see my earlier post, specifically:



I suggest you request that your Sysadmin "does the needful", because sudo will consume arguments passed and check whether they correspond...
Forum: Linux 01-27-2011
21,726
Posted By dsw
'man 2 creat' creat(2) operates on file...
'man 2 creat'

creat(2) operates on file descriptors as does the rest of the stdio.h calls - give the manpage a view.

-or-

you can OR the O_CREAT flag with O_RDWR in open(2) to create the...
1,676
Posted By dsw
You could test the return code from the grep ...
You could test the return code from the grep

name="john"
age=25
file=txt
grep -x ${name}:${age} $file 2>&1 > /dev/null

if [ "$?" -eq "0" ]; then
echo "User exists"
fi

...
Forum: Linux 01-26-2011
21,726
Posted By dsw
Check the perms on /dev/loop0 ls -l...
Check the perms on /dev/loop0


ls -l /dev/loop0
5,550
Posted By dsw
Yeah, I edited my post above. You have to...
Yeah, I edited my post above.

You have to use double quotes for the command so the shell can expand the var ahead of time. Single quotes pass it literally.

You'll have to escape the double ""...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 08:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy