11-14-2005
Try to maintain mv as /usr/sbin/mv and then try .
Also check the same mv command with whereis mv command.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have defined in cron
crontab -l >/FIXENGINE/data/crontab.$(whoami).$(date +%a)
The resulting file is named
crontab.fixadmin.
When I run the above from a command line, the file is named:
crontab.fixadmin.Tue (or whatever day I happen to be running)
The question is - why do I get... (4 Replies)
Discussion started by: bigjohn-nj
4 Replies
2. HP-UX
hi folks,
i've got a blank hp visualize C3000 workstation and installed HP-UX 11.11. When I want to start X, I get the following error message:
# X
Fatal server error:
Couldn't open X pointer device! Is one attached?
I've connected an mouse and a keyboard with an usb/ps2 connector.... (5 Replies)
Discussion started by: grisu
5 Replies
3. Shell Programming and Scripting
Dear All,
We wrote a script to clean email mailbox when they're nearly full and put it in cron :
0 0 * * * /root/quota/autoclean.sh > /root/quota/autoclean.`date '+%Y%m%d'` 2>&1
I've run this command from command prompt, it did work.
However, if running from cron, it returned such error... (1 Reply)
Discussion started by: tiger2000
1 Replies
4. Homework & Coursework Questions
im making c code in linux and im having problems with one command, id should bring up a list but instead id doesnt do nothing, there are no error's, can anyone solve whats wrong ?
void environ()
{
extern char **environ;
int i=0;
for (i = 0; environ !=NULL;i++)
{
... (1 Reply)
Discussion started by: figureout
1 Replies
5. Shell Programming and Scripting
Hi All.
Little mystery here. I've been teaching myself perl, and I want to execute regular linux / unix commands i.e. cd .. , cd /etc and have been using the command(s)
execute ("cd ..");
or
system ("cd ..");
I don't get any error messages, even when I do a debug, but for some reason... (5 Replies)
Discussion started by: azrael2000
5 Replies
6. IP Networking
Hi,
I have a weird problem.
when ever I do ping command like for example
ping unix.comI get the following message:
# ping unix.com
ping: unknown host unix.com
but when I use host the computer is able to know the host.
# host unix.com
unix.com has address 81.17.242.186
unix.com mail is... (2 Replies)
Discussion started by: programAngel
2 Replies
7. Shell Programming and Scripting
Hi.
Here is beginning of my script
#!/usr/local/bin/expect --
set timeout 15
spawn /usr/local/account.sh -n modify
expect "Password:" {send "mypassword\r"}
But due to some terminal control sequences (or something else, dunno exactly) my password prompt is looking like this:
and expect... (3 Replies)
Discussion started by: urello
3 Replies
8. Shell Programming and Scripting
Hello, Unix-forums!
My problem:
read -p "Enter any number, please" number
sleep 1
echo $number | tr -d 0-9
test -z $number && echo "Thank you" || echo "This is not a number"Test always displays "This is not a number". It doesn't matter if I entered a or 1.
But if I order
echo... (2 Replies)
Discussion started by: intelinside
2 Replies
9. IP Networking
I have vmware on my windows PC ( hostname : acer ).
vmware has RHEL 7 ( hostname : rhel7 ) installed recently.
RHEL IP configuration
IP : 192.168.5.128
Netmask : 255.255.255.0
ssh to rhel7 works from acer using putty
resolve.conf
cat /etc/resolv.conf
nameserver 192.168.5.1
host... (12 Replies)
Discussion started by: hiten.r.chauhan
12 Replies
whereis(1) General Commands Manual whereis(1)
NAME
whereis - Locates files for programs
SYNOPSIS
whereis [-bms] [-u] [-BMS directory... -f] program...
The whereis command locates source, binary, and/or reference page files for the specified program program.
OPTIONS
The -b, -m, and -s options can be used in combination to restrict the search. Searches for an executable program. Searches for the refer-
ence page for a program. Searches for the sources of a program.
Use the -B, -M, and -S options to change or limit the places whereis searches. Specifies the binary directories to search. Specifies the
reference page directories to search. Specifies the source directories to search.
The other options that can be used with whereis are as follows: Terminates the last directory list and signals the start of program names.
Used with other options to indicate when there is no file for program in the default or specified directory or directories (source, binary,
or reference page).
DESCRIPTION
The whereis program locates source, binary, and reference pages for the specified programs. When looking for a match, the program names
are stripped of leading pathname components and any trailing extensions of the form (for example, s. resulting from the use of the Source
Code Control System see sccs(1), are also handled.
The default directories searched by the whereis command are as follows: /etc /etc/nls /sbin /usr/bin /usr/lbin /usr/lbin/spell /usr/ccs/lib
/usr/lib /usr/local /usr/hosts /usr/sbin
EXAMPLES
To find files matching cat in the default source, binary, and reference directories, enter: whereis cat To search for reference pages for
app13 in the directory /usr/local/man, enter: whereis -M /usr/local/man -f -f appl3 To find the programs in /usr/bin that do not have ref-
erence pages in /usr/share/man/man1 with source files in /usr/src/cmd, enter: whereis -u -M /usr/share/man/man1
-S /usr/src/cmd -f /usr/bin/* To find which files in the current directory either have no reference pages in the default reference
directories or have more than one, enter: whereis -m -u *
FILES
Default binary directories. Default binary directories. Default reference directories. Default source directories.
SEE ALSO
Commands: apropos(1), find(1), man(1), which(1), catman(8)
whereis(1)