I have just formatted an external hard disk using this command:
$ sudo mkfs -t ext3 /dev/sdc1
However, once this is done, whenever I want to create a directory
or file in this hard disk, it always ask for password (i.e. permission requirement).
Is there a way I can disable that?
Note that I can't format the partition with mkfs unles...
When I carried out a fetch command, the following messages were output.
"size of remote file is not known"
Will this be an error? Will it be what or the thing which disappears if I appoint an option? Or will it be all right even if I do not mind it?
If there is a detailed person, please teach it
...
I'm trying to create a daemon in python. I've found the following question, which has some good resources in it which I am currently following, but I'm curious as to why a double fork is necessary. I've scratched around google and found plenty of resources declaring that one is necessary, but not why.
Edit: Thanks for the excellent answ...
can anyone tell me where I could find source code for unix environments 'cd' command
I want to know how change directory command is implemented.
prolly linux sources..would be good..
...
Hi All,
I know this question has kind-a started "religious" wars in past and there might not be one correct answer. But after working with ksh and csh for last 3-4 years and going through the pain of porting from one to another or applying a common piece of logic to multiple versions (read as legacy code), if I am writing a new script, ...
Is there a tool in the market that takes Visual Studio "nmake" files, and converts them to Unix-style "make" files? Is there any tool that eases the pain of managing makefiles in large projects?
...
I develop an application with requires root privileges. I use Code:Blocks launched with sudo codeblocks command. The problem is that developing in root'ed Code::Blocks results in source files and CB configuration files being created with root owner.
I thought I could use setuid on codeblocks executable but it is not allowed with GTK app...
I want to search the program ">>" that is by which you append to a file.
I run the code unsuccessfully in Mac
find . -print0 | xargs -0 grep " >> "
I get too many results to find the correct app.
The program is not among other teletypes at /bin.
How can you find the program ">>"?
...
# join pairs of lines side-by-side (like "paste")
sed '$!N;s/\n/ /'
The above script comes from the great list of sed one-liners found on sourceforge.
I wish to use it in an a bash script but it has no effect if used inside the script. If I pipe the output of the script through it, it joins join pairs of lines side-by-side as descri...
Possible Duplicates:
Why do programs in Unix-like environments have numbers after their name?
Why do programs in Unix-like environments have numbers after their name?
Duplicate: http://stackoverflow.com/questions/587676/why-do-programs-in-unix-like-environments-have-numbers-after-their-name
Hello :)
I have seen several pr...
If I use "-O2" flag, the performance improves, but the compilation time gets longer.
How can I decide, whether to use it or not?
Maybe O2 makes the most difference in some certain types of code (e.g. math calculations?), and I should use it only for those parts of the project?
EDIT: I want to emphasize the fact that setting -O2 for ...
I've got an AIX batch job that uses isql to execute a stored procedure in Sybase. The stored procedure is returning an error code under certain conditions. I would like for isql to pass that return code to the AIX script.
Can I capture the the stored proc's return code within isql, or do I have to write an output file of some kind and h...
I want to put TextA to the beginning of TextB by
cat TextA A TextB
The problem is that I do not know how to refer to the first and second parameters, that is TextA and TextB in the following script called A:
#!/bin/bash
cat TextA > m1
cat TextB > m2
cat m1 m2 > TextB
where m1 and m2 are temporary files.
How can you refer ...
I'm relatively new to Unix shell scripting. Here's my problem. I've used this script...
isql -S$server -D$database -U$userID -P$password << EOF > $test
exec MY_STORED_PROC
go
EOF
echo $test
To generate this result...
Msg 257, Level 16, State 1:
Server 'MY_SERVER', Procedure 'MY_STORED_PROC':
Implicit conversion from datatype 'VARCHA...
here is my scenario
our team develops on AIX
dozens of applications, mostly Perl, shell scripts, batch java, C
i would like to simplify deployment/rollback procedures - currently using plain old tarballs with backups
I looked into installp vs. rpm for packaging (see my SO question) and decided to go with rpm - better docs, plus IBM inc...
I want to write a script that will get me straight to a python shell on another box so that i don't have to first run ssh and second run python.
When I do "ssh hostname python" it just hangs - it's something to do with the fact that python is interactive. "ssh hostname cat x" works fine.
Is there some ssh option that will make this wor...
I would like to use killall on a process of the same name from which killall will be executed without killing the process spawning the killall.
So in more detail, say I have process foo, and process foo is running. I want to be able to run "foo -k", and have the new foo kill the old foo, without killing itself.
...
What are the possible ways of intercepting system calls on unix environments?.
I m looking to do in AIX.
Thanks
...
I have two simple programs set up that share data through a unix domain socket. One program reads data out of a Queue and sends it to the other application. Before it is sent each piece of data is front-appended by four bytes with the length, if it is less then four bytes the left over bytes are the '^' symbol.
The client application t...
I have a list of dotFiles at my workarea. For example, .bashrc and .vimrc.
I want to make a symlinks from them to my Home such that their names are the same as in my workarea -folder.
My attempt in pseudo-code
ln workarea/.[a-zA-Z] ~/.*
The problem is to have a bijection from [a-zA-Z] to the files which occur in my Home.
How can yo...