Status quo is, within a web application, which is coded completely in php (not by me, I dont know php), I have to fill out several fields, and execute it manually by clicking the "go" button in my browser, several times a day.
Thats because:
The script itself pulls data (textfiles) from a... (3 Replies)
I am working on a script that checks two arguments at the command line. The first argument is a search pattern, the second can be a file or a directory, if it is a file a second script is called that checks it for the search pattern. If the second argument is a directory, it checks for the search... (5 Replies)
I need some help recovering from a "slight" screwup. We just moved 3 TB of data from one RAID Array to another. Low lever archive files. This was done with a regular cp (for some reason) and now we have lost all the timestamps on the files, and we urgently need to get the timestamps back on these... (7 Replies)
How can I tell a script to only execute if the other scripts exits successfully?
So "script A" executes and if it executes successfully (0),then "script B" will run
or else
"script A "executes and it exits unsucessfully (1) then "script B" will read return code (1) and will not execute
... (3 Replies)
Hello Guys
I have a script working fine on csh, but I would like to change it to bash, how I should change this command to be able to work as bash script. :wall:
if ( $fsw > "0" ) then
foreach swath ( `awk 'BEGIN {for (i='$fsw';i<='$lsw';i++) printf ("%s\n", i) }'` )
## work to be done... (2 Replies)
Hi, I've got a Bash backup script I'm trying to run on a directory via a cron job nightly. If I ssh in and run the script manually it works flawlessly. If I set up the cron to run evertything is totally messed up I don't even know where to begin.
Basically the path structure is
... (6 Replies)
#!/bin/bash
X=$(</home/cogiz/computerhand.txt) # (3S 8C 2H 6D QC 8S 4H 5H)
Y=$(</home/cogiz/topcardinplay.txt) # KS
A=( "${Y::1}" )
B=( "${Y:1}" )
for e in ${X}; do
if ]; then # searching for valid cards K,S or 8
... (0 Replies)
I am trying to change dates in a bash script.
I have a start time and an endtime and want to increment the times. Basically
the month and day have to be incremented in a loop to create two strings, stm and
etm defining the start and end times.
stm="2014-05-13T00:00:00"... (4 Replies)
Discussion started by: novilatte
4 Replies
LEARN ABOUT OSX
cvaffinity
cvaffinity(1)cvaffinity(1)NAME
cvaffinity - Set an affinity type
SYNOPSIS
cvaffinity -s <key> filename
cvaffinity -l filename
cvaffinity -d filename
DESCRIPTION
cvaffinity can be used to set an affinity for a specific storage pool
on a file or directory, or list the current affinity. An affinity is
created in a storage pool through the volume configuration (see
cvfs_config(4).) It is a name, up to eight (8) characters, describing a
special media type. Use cvadmin (1) to see what affinity sets are
assigned to the configured storage pools.
If the affinity does not exist for any of the storage pools, then the
allocation will occur on the non-exclusive storage pool. If there is
no non-exclusive storage pool, an ENOSPC is returned.
USAGE -s <key> is the Affinity Key to associate with the file or direc-
tory and is defined as a 'MediaType' name in the file system
configuration. Use the program 'cvadmin' to see the Affinity
Keys active in this file system. For files with an Affinity,
new blocks allocated to that file are placed on a storage pool
with the specified Affinity. For directories with an Affinity
new files created in that directory inherit the Affinity from
the directory.
-l This option says to just list the affinity for the specified
file and exit.
-d This option says to delete the affinity from the specified file
or directory, if one exists.
<filename>
Specifies any file or directory on the targeted volume. When
the -k option (set session affinity) is specified, or no other
option is specified, the filename option is used as a read-only
reference handle in order to access the volume. When the -s,
-d, or -l options are used, the filename option specifies the
file or directory operated on.
EXAMPLES
List the affinity on the file /usr/clips/foo.
rock # cvaffinity -l /usr/clips/foo
Set this file or directory to use the storage pool that has the jmfn8
affinity type.
rock # cvaffinity -s jmfn8 /usr/clips/filename
Remove the affinity from the /usr/clips/mydir, if one is currently
assigned.
rock # cvaffinity -d /usr/clips/mydir
SEE ALSO cvfs_config(4), cvadmin(1)Xsan File System December 2005 cvaffinity(1)