I'm trying to figure out how to build a small shell script that will find old .shtml files in every /tgp/ directory on the server and delete them if they are older than 10 days...
The structure of the paths are like this:
/home/domains/www.domain2.com/tgp/
/home/domains/www.domain3.com/tgp/... (1 Reply)
hi freinds,
i just learning shell programming. i usually work in bash shell, but when i need tcshell, i normally i/p chshell command and go there. but although i have installed all the neccessay patches for this shell my machine can not work in tshell. but it shows the shell to be present..... (0 Replies)
Hello all,
Any idea how to check whether a variable holding null value or not. if -z option works fine in bash, where as it is not working in sh.
bash-3.00$ sh
$ TEST=
$ if ; then
> echo "Null"
> else
> echo "Not null"
> fi
sh: test: 0403-004 Specify a parameter with this command.... (2 Replies)
Hi,
I'm using FreeBSD 6. I want to know which Shell I'm using. So I gave the command:
-sh-3.1$ ps -p $$
PID TTY TIME CMD
15547 pts/1 00:00:00 sh
Which shell is "sh"? Is it C Shell or Bourne Shell or Korn Shell?
Also, are Bourne & Korn shell one and the same or are... (4 Replies)
Had any one made the wildcard "*" or "?" work in tcp wrappers configure file hosts.allow and hosts.deny in AIX? It won't work for me no matter how hard I try.
I am trying to restrict the access of our ftp server and if I specify following in hosts.allow:
ftpd : host01.domain.com... (0 Replies)
I tried to use the wildcard '*' in my bash script, but I can not get it work. Here is a simple example (list file names in current directory):
ls ./*
does not work in my bash script. But it works if I use
ls ./
So is there any special syntax to use '*' wildcard in bash script (I tested the... (11 Replies)
Dear Friends,
I am trying to get a script in c-shell working but no way! I don't know why but on my mac was working and now on linux is not!
Basically the script should accept a root_file_name and work in batch on files. This is the script:
#!/bin/csh -fn
setenv IMAGIC_BATCH 1
... (3 Replies)
Dear All,
I have script.
Dest=""
IFS='
'
for translation in $(echo $MY_MAP)
do
t1=$(echo $translation | cut -d"=" -f1)
t2=$(echo $translation | cut -d"=" -f2| cut -d"," -f1)
if
then
Dest=$UNX/$u_product_path/$u_study_path/$UNXTR/$t2
break;
... (4 Replies)
Discussion started by: yadavricky
4 Replies
LEARN ABOUT OPENDARWIN
mount_hfs
MOUNT_HFS(8) BSD System Manager's Manual MOUNT_HFS(8)NAME
mount_hfs -- mount an HFS/HFS+ file system
SYNOPSIS
mount_hfs [-e encoding] [-u uid] [-g gid] [-m mask] [-o options] [-w] [-x] special | node
DESCRIPTION
The mount_hfs command attaches the HFS file system residing on the device special to the global file system namespace at the location indi-
cated by node. This command is normally executed by mount(8) at boot time.
The options are as follows:
-e encoding (standard HFS volumes only)
Specify the Macintosh encoding. The following encodings are supported:
Arabic, ChineseSimp, ChineseTrad, Croatian, Cyrillic, Greek, Hebrew, Icelandic, Japanese, Korean, Roman (default), Romanian, Thai,
Turkish
-u uid Set the owner of the files in the file system to uid. The default owner is the owner of the directory on which the file system is
being mounted.
-g gid Set the group of the files in the file system to gid. The default group is the group of the directory on which the file system is
being mounted.
-m mask
Specify the maximum file permissions for files in the file system. (For example, a mask of 755 specifies that, by default, the owner
should have read, write, and execute permissions for files, but others should only have read and execute permissions. See chmod(1)
for more information about octal file modes.) Only the nine low-order bits of mask are used. The default mask is taken from the
directory on which the file system is being mounted.
-o Options are specified with a -o flag followed by a comma separated string of options. See the mount(8) man page for possible options
and their meanings.
-w Mount the HFS wrapper volume.
-x Disable execute permissions on a standard HFS file system.
SEE ALSO mount(2), unmount(2), fstab(5), mount(8)BUGS
Some HFS file systems with highly fragmented catalog files may not mount.
HISTORY
The mount_hfs utility first appeared in Mac OS X Server 1.0.
Mac OS X March 14, 2001 Mac OS X