At the moment I do not know anything UNIX script :rolleyes:
but i need to make script that prints the content of the archives
(of text) that are deposited in a directory and Later erases these
archives, leaving the directory emptiness
It would be like repository for print
please... (9 Replies)
Is there a shell command that will allow me to list index files in the /home directory for all users on a server that have been updated within the past 24 hours?
(e.g. index.htm .html .php in/home/user1/public_html /home/user2/public_html /home/user3/public_html etc ) (2 Replies)
I am new to shell scripting. Can someone help me out with this one please?
I need to write a script fot the following scenario:
I am currently in /parent directory.
I have a set of files in /parent/error_files directory
My script has to search for a file in /parent/erratic_files... (1 Reply)
Hi All,
I am stuck with a problem and i want your help, what i want to do is
I have a directory name dircome
and there are 6 files present in this directory, the name of the files are d1,d2,d3,d4,d5,d6.
The Perl script print the files name, means the output should be
d1
d2
d3
d4
d5
d6 (9 Replies)
Hi,
I am trying to work on this script that needs to monitor a Directory.
In case there are no files received in that Directory for the last 5 minutes, it has to send out an alert.
Could someone please suggest any approach for the same.
Note: I did check out various previous psts -... (8 Replies)
Hi with the help of Gabriel canepa, i have just edited filename only in his code. The help which i got and he helped is
1) I have around 22 logs and each log should be updated in the last 24 hours from the current timestamp.
2) It should check for ERROR message (not error,Error) in the log and... (2 Replies)
Hi
My directory structure is as below.
dir1, dir2, dir3
I have the list of files to be deleted in the below path as below.
/staging/retain_for_2years/Cleanup/log $ ls -lrt
total 0
drwxr-xr-x 2 nobody nobody 256 Mar 01 16:15 01-MAR-2015_SPDBS2
drwxr-xr-x 2 root ... (2 Replies)
Given a directory containing say a few thousand files,
please output a list of all the names of the files in the directory that are exactly the same, i.e. have the same contents.
func(a_directory_name) output -> {“matches”: , ... ]}
e.g. func(“/home/my/files”) where the directory... (7 Replies)
Hi All,
I hope somebody would be able to help me.
I would need to search a string coming from a file, example file.txt:
dog
cat
goat
horse
fish
For every string, I would need to know if there are any files inside a directory(recursively) that contains the string regardless of case.... (9 Replies)
I have a directory of files, I can show the number of lines in each file and order them from lowest to highest with:
wc -l *|sort
15263 Image.txt
16401 reference.txt
40459 richtexteditor.txt
How can I also print the number of unique lines in each file?
15263 1401 Image.txt
16401... (15 Replies)
Discussion started by: spacegoose
15 Replies
LEARN ABOUT DEBIAN
state_analyzer
STATE_ANALYZER(8) AFS Command Reference STATE_ANALYZER(8)NAME
state_analyzer - Explores and queries the fileserver state database interactively
SYNOPSIS
state_analyzer [state dump file | -h]
DESCRIPTION
The demand-attach file server makes host / callback information persistent. On shutdown, the state is saved to database fsstate.dat(5). On
startup, the state is read, verified and restored. This allows for file server shutdowns or restarts without breaking all callbacks (an
operation that could otherwise take a long time).
state_analyzer interactively explores and queries the saved state database, fsstate.dat(5).
This command is only supported on the demand-attach file server. It operates at an extremely low-level and hence requires detailed
knowledge of the OpenAFS architecture and code.
COMMANDS
state_analyzer supports the following interactive commands:
h <...> -- host menu
o hdr -- display the host_state_header struct
o first -- display the first host
o prev -- display the previous host
o this -- display this host
o next -- display the next host
o last -- display the last host
o dump -- display all hosts
fe <...> -- FileEntry menu
o hdr -- display the callback_state_header struct
o first -- display the first FE
o prev -- display the previous FE
o this -- display this FE
o next -- display the next FE
o last -- display the last FE
o dump -- display all FEs
o timeout -- display the timeout queue heads
o hash -- display the file entry hash buckets
o find by index id -- find an fe by its array index
o find by fid (vol,vnode,unique) -- find an fe by its AFSFid
cb <...> -- CallBack menu
o hdr -- display the callback_state_entry_header struct
o first -- display the first CB
o prev -- display the previous CB
o this -- display this CB
o next -- display the next CB
o last -- display the last CB
o dump -- display all CBs
hexdump [offset [len]] -- hex dump raw data
quit -- quit current menu
exit -- exit debugger
help -- help message
PRIVILEGE REQUIRED
The issuer must have read access to the file server state database, fsstate.dat. Usually, this means that the issuer must be the local
superuser "root" on the file server machine.
SEE ALSO fsstate.dat(5), fssync-debug(8), salvsync-debug(8)COPYRIGHT
Copyright 2010 Davor Ocelic <docelic@spinlocksolutions.com>
This documentation is covered by the IBM Public License Version 1.0. This man page was written by Davor Ocelic for OpenAFS, based on
documentation from Tom Keiser, Steven Jenkins and others.
OpenAFS 2012-03-26 STATE_ANALYZER(8)