I am trying to create a shell (ksh) which has two "read" commands, one which reads a line from a file and another which is inside a loop that reads user input from a keyboard. However, the "read" command inside the loop uses the input from the file and it does not get the user input from keyboard.... (3 Replies)
Hello,
I am trying to remove an employing from our database, I have removed all her files but can't remove the directory because of the hidden files.
How do I remove the user?
Thanks, (1 Reply)
Hi. I have a script which is deleting files with a particular extension and older than 45 days.The code is:
find <path> -name "<filename_pattern>" -mtime +45 -exec rm {} \;
But the problem is that some important files are also getting deleted.To prevent this I have decide to make a dummy... (4 Replies)
Hi,
echo "Enter file name of input file list along with absolute path : "
read inputFileList
if
then
for string in `cat inputFileList`
do
echo $string
done
else
echo " file does not exist"
fi
From the above code, if the user enters a invalid file... (1 Reply)
I want to list all directories hidden or not hidden.
ls -ld */ => shows only not hidden directories
so i guess the answer would be to add the a option to show all files
ls -lad */ => not working :confused:
ls -la | grep "^d" => works
But I would like to know why I can't use ls -lad... (4 Replies)
i have a script which takes input from user, if user gives either Y/y then it should continue, else it should quit by displaying user cancelled.
#!/bin/sh
echo " Enter your choice to continue y/Y OR n/N to quit "
read A
if
then
echo " user requested to continue "
##some commands... (7 Replies)
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)
Hello.
I use this command :
rsync -av --include=".*" --dry-run "$A_FULL_PATH_S" "$A_FULL_PATH_D"The data comes from the output of a find command.
And no full source directories are in use, only some files.
Source example... (2 Replies)
Jifty::Plugin::Authentication::Password::Dispatcher(3pm)User Contributed Perl DocumentatioJifty::Plugin::Authentication::Password::Dispatcher(3pm)NAME
Jifty::Plugin::Authentication::Password::Dispatcher - password plugin dispatcher
DESCRIPTION
All the dispatcher rules jifty needs to support "" in Jifty::Authentication::Password
RULES
"before logout"
Logout and return home.
See Jifty::Plugin::Authentication::Password::Action::Logout.
"before *"
Setup the navigation menu for login or logout.
"on qr/^(?:signup|lost_password)$/"
Redirect to home if logged.
Request a password reminder or signup for an account otherwise.
"on login"
Redirect to home if logged.
Show the login form otherwise.
"before reset_lost_password"
Request a password reset.
"before passwordreminder"
Request a new password reminder to be sent by email.
See Jifty::Plugin::Authentication::Password::Action::SendPasswordReminder.
"before signup"
Sign up for an account.
See Jifty::Plugin::Authentication::Password::Action::Signup.
"before login"
Login to your account.
See Jifty::Plugin::Authentication::Password::Action::Login.
not_logged_in_nav
Adds the login and signup links to the navigation menu.
logged_in_nav
Adds the logout link to the navigation menu.
SEE ALSO
Jifty::Plugin::Authentication::Password, Jifty::Plugin::Authentication::Password::View
COPYRIGHT
Jifty is Copyright 2005-2010 Best Practical Solutions, LLC. Jifty is distributed under the same terms as Perl itself.
perl v5.14.2 2010-12-10 Jifty::Plugin::Authentication::Password::Dispatcher(3pm)