First  |  Prev |  Next  |  Last
Pages: 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
root can't ls(1) a directory: Permission denied
Hello, I didn't think that could happen but yes, the root user can't ls(1) a directory whereas a simple user can. $ ls -ld /home/francis/.gvfs/ dr-x------ 2 francis francis 0 2010-03-10 16:59 /home/francis/.gvfs $ su - $ ls /home/francis/.gvfs/ ls: cannot access /home/francis/.gvfs/: Permission denied The... 15 Mar 2010 16:59
mount(8) followed by umount(8) fails
Hello I've the following (stupid) script that mount a device and umount it right after the mount was succesfull: --- 8< --- #! /bin/sh declare -i i=0 tmpdir=/tmp/foo.yYZ5szCyTv node=/dev/sdc1 while :; do mount -o ro,sync $node $tmpdir && { umount $tmpdir || break } || break i+=1 echo $i done... 12 Mar 2010 10:31
Mapping home and end keys - ksh and Putty
Hi, My environment is ksh88 (ugh!) under HP-UX, with Putty as my connection client. I'm trying to remap my arrow, home, and end keys to the emacs editing mode key sequences. I've got the arrow keys working thanks to Google: # vt100 normal (non-application) cursor keys # alias -x __A=$(print '\020') # Se... 18 Mar 2010 15:29
How to remove all subdirectory/file under current directory ?
Hi All Any suggestion ? Currently, I am using below shell command cd delete_path rm -f * # remove current directory files rm -f */* # remove subdirectory files rm -f */*/* # repeat ... rm -f */*/*/* rm -f */*/*/*/* rm -f */*/*/*/*/* rm -f */*/*/*/*/*/* rm -f */*/*/*/*/*/*/* rm -f */*/*/*/*/*/*/*... 5 May 2010 07:07
differecnce between ${IFS} and "${IFS}"
The following two commands have different effect. $ echo A${IFS}B A B $ echo "A${IFS}B" A B It is obvious that the first one interprets `IFS' as space, while the second interprets it as new line. In fect, the `IFS' represents three characters, namely space, tab, and new line. why different choices occur ... 8 Mar 2010 16:24
ksh: functions aren't exported?
I am stuck working in ksh 1988 (thank you HP-UX). Here is the behavior I am observing - is this expected? lib.sh: has a function ( "blah()") top_script.sh: sources lib.sh and can call blah() and it works just fine top_script.sh executes bottom_script.sh. In bottom_script.sh, blah() is not found Variabl... 8 Mar 2010 02:06
system calls
Glen Hermannsfeldt posted this in comp.lang.fortran: #include <stdio.h> int main() { printf("%d\n",system("ls | grep .")); } // gcc -D_GNU_SOURCE -Wall -Wextra rr1.c -o out Output seemed typical: $ ./out 9vx-0.12 9vx-0.12.tar.bz2 a2.c .... winter1.c~ z 0 Apparently, the zero is expecte... 26 Mar 2010 13:10
scp selected files, create directory if needed
I have come up with this problem, searched the archives but did not find a good solution. I have a directory called archives. I want to find all the files ending with ".mbox", and I want to scp all those files to another server. but the trick is that I need to preserve the directory structure. I came up with ... 7 Mar 2010 00:59
How to list all calls to external programs in a bash script
I would like to list all the external programs that will be possibly executed by a given bash script. Anyone knows a way to do this without messing with /bin/bash source code? ... 12 Mar 2010 18:26
Fast GUI pipemeter: gprog
In case you're interested, I've put a fast GUI pipemeter (measures how fast data is moving through a pipe or redirect and gives two estimates of time-to-completion - one based on the entire transfer so far, and one based on a user-specifiable number of blocks) up at: http://stromberg.dnsalias.org/~dstromberg/gp... 9 Mar 2010 19:13
First  |  Prev |  Next  |  Last
Pages: 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45