11-21-2011
im using secure shell client to connect to my school's afs thingy
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
How would i validate value of a variable whether it is number,date or string
Thanks in advance
Sas (5 Replies)
Discussion started by: SasDutta
5 Replies
2. Shell Programming and Scripting
Dear Guyz:)
I have 2 different input files like this. I would like to pick the values or letters from the inputfile2 based on inputfile1 keys (A,F,N,X,Z).
I have done similar task by using awk but in that case the inputfiles are similar like in inputfile2 (all keys in 1st column and values in... (16 Replies)
Discussion started by: repinementer
16 Replies
3. Shell Programming and Scripting
I have read another post about this issue and am wondering how to adapt it
to my own, much simpler, issue.
I have a file of user IDs like so:
333333
321321
546465
...etc
I need to take each number and use it to print records wherein the 5th
field matches the user ID pulled from the... (2 Replies)
Discussion started by: Bubnoff
2 Replies
4. Shell Programming and Scripting
Hi
I would like to change certain columns in a file depending on the users choice of input and which columns they would like to change.
Here is my csv file:
SITEID,CELLID,Access Grant Blocks Reserved
1,1A,5
1,1B,2
1,1C,3
2,2A,7
2,2B,4
2,2C,0
If for example they would... (9 Replies)
Discussion started by: ladyAnne
9 Replies
5. Shell Programming and Scripting
Being linux administrator my task is to keep the machines up and running .Everyday i get a report of list of machines that are up and running.
it would be nice if i get list of machines that are shutdown in comparison to yesterdays report.
for example.If there are 5 machines in my environment... (5 Replies)
Discussion started by: pinga123
5 Replies
6. Shell Programming and Scripting
Hi all.
I have the following command that is successfully searching for any one of the strings on all lines of a file and replacing it with the instructed value.
cat inputFile | awk '{gsub(/aaa|bbb|ccc|ddd/,"1234")}1' > outputFile
This does in fact replace any occurrence of aaa, bbb,... (2 Replies)
Discussion started by: dazhoop
2 Replies
7. Shell Programming and Scripting
Hello,
For the input file, I am trying to split those records which have multiple values seperated by '|' in the last input field, into multiple records and each record corresponds to the common input fields + one of the value from the last field.
I was trying with an example on this forum... (4 Replies)
Discussion started by: imtiaz99
4 Replies
8. Shell Programming and Scripting
Hello,
I need to capture multiple values from user input and do not know how to do it. I'm writing a script to delete old files, but want to give the option to keep some by asking the user.
This is what my output looks like...
Old files to be deleted...
1 file1
2 file2
Then this bit of... (3 Replies)
Discussion started by: jrymer
3 Replies
9. Shell Programming and Scripting
Hi,
I want to replace a chain of if-else statement in an old AWK file with values from Db2 table or CSV file. The part of code is below...
if (start_new_rec=="true"){
exclude_user="false";
user=toupper($6);
match(user, "XXXXX.");
if (RSTART ==2 ) {
... (9 Replies)
Discussion started by: asandy1234
9 Replies
10. Shell Programming and Scripting
I am trying to allow a user to enter in text and then store that text in a variable $gene to run in an awk command in which those values are used to run some calculations. I am getting syntax errors however, when I try. Thank you :).
The awk runs great if it is a pre-defined file that is used,... (7 Replies)
Discussion started by: cmccabe
7 Replies
LEARN ABOUT PHP
fs_newalias
FS_NEWALIAS(1) AFS Command Reference FS_NEWALIAS(1)
NAME
fs_newalias - Creates a new alias for a cell
SYNOPSIS
fs newalias [-alias] <alias name>
[-name] <cell name> [-help]
DESCRIPTION
The fs newalias command is used when the AFS Cache Manager is in Dynamic Root (-dynroot) mode. It creates a symbolic link in /afs from an
alias to the full name of the cell. It also creates a symbolic link from the alias prepended with "." to the full name of the cell
prepended with ".", the convention for access to the read/write version of the "root.cell" volume of that cell.
This command is used to supplement aliases created via the CellAlias configuration file when afsd starts.
Traditionally, these aliases would be created by the local AFS administrator by creating symbolic links in the "root.afs" volume. Such
symlinks do not appear when Dynamic Root is enabled because, with Dynamic Root, the Cache Manager does not mount or look at the "root.afs"
volume. This alias capability is a replacement that allows such short names to be created under client control.
CAUTIONS
Aliases created with fs newcell are only temporary and will be lost when the AFS Cache Manager is restarted or the client machine is
rebooted. In order to make the alias permanent, it must be put into the CellAlias file.
There is no way to remove an alias once created without restarting the AFS Cache Manager.
OPTIONS
-alias <alias name>
This is the short name to which the user wants to map the real cell name.
-name <cell name>
This is the real cell name.
-help
Prints the online help for this command. All other valid options are ignored.
OUTPUT
This command has no output.
EXAMPLES
There are two ways to call fs newalias:
% fs newalias openafs openafs.org
% fs newalias -alias openafs -name openafs.org
Both of the above examples create an alias "openafs" for the cell "openafs.org". Two links will be created in /afs:
/afs/openafs -> /afs/openafs.org
/afs/.openafs -> /afs/.openafs.org
PRIVILEGE REQUIRED
The issuer must be logged in as the local superuser root.
SEE ALSO
afsd(8), CellAlias(5), fs_listaliases(1)
COPYRIGHT
Copyright 2007 Jason Edgecombe <jason@rampaginggeek.com>
This documentation is covered by the BSD License as written in the doc/LICENSE file. This man page was written by Jason Edgecombe for
OpenAFS.
OpenAFS 2012-03-26 FS_NEWALIAS(1)