Please also show us the output you get from the command:
The diagnostic message you're getting could be caused by some unexpected character sequence between the -exec and the end of that line in your script. Although I don't get that diagnostic with the BSD-based find on macOS version 10.13.3, one might expect something like that if there is a null byte anywhere after the -exec or if there is a <carriage-return> just after the \;.
I have a directory which contains files with different kinds of extensions .everyday a file with .log gets added to it .i want to extract the file with .log extension which is created with todays date .
thanks in advance (2 Replies)
I have a directory MYDIR
In which i have several directories 1,2,3,4....
Now, In each of these directories i have several files a.dat, b.dat, c.dat, d.dat.....
MYDIR
----1
---------a.dat
---------b.dat
---------c.dat
---------d.dat
----2
---------a.dat
---------b.dat
---------c.dat... (2 Replies)
Hi, I have a directory PRIVATE in which I have several directories and each of these have several files. Therefore, I need to find those files by size and date to back up those files in another directory.
I don't know how to implement this shell script using ''find''.
appreciate any... (1 Reply)
hi guys,
Suppose you have 100 files in a folder and you want to replace all occurances of a word say "ABCD" in those files with "DCBA", how would you do
it ???
jatin (13 Replies)
Hi Experts,
I am trying to write a shell script that should
1. Find files with name (ab030.txt,Ab030.TXT,AB030.TXT,ab030.TXT,AB030.txt)
2. If any of the above found, rename it to AB030.TXT
Thanks. (4 Replies)
Hi. I have a problem that i can't seem to resolve. I need to create a script that list all the files, that are found recursively, with the same name.
For example if a file exists in more than one directory with the same name it list all the files that he founds with all the info. Could someone... (5 Replies)
Hello all,
I am in need of assistance in creating a script that will remove a specified block of text from multiple .htaccess files. (roughly 1000 files)
I am attempting to help with a project to clean up a linux server that has a series of unwanted url rewrites in place, as well as some... (4 Replies)
Hi friends.. I have many dirs in my working directory. Every dir have thousands of files (.jsp, .java, .xml..., etc). So I am working with an script to find every file recursively within those directories and subdirectories ending with .jsp or .java which contains inside of it, the the pattern... (3 Replies)
Hi,
I have the shell script requirement mentioned below :
List all java and c files or all files in directory and sub directories' in folder structure in current dir.
then search for pattren1 in all files globally and replace with other string .
And also check the date... (3 Replies)
Hi all,
i am new to this forum, unix and shell scripting.
I would really appreciate if you all can help me here..
I have files coming in the below format
'filename20513'13May06:03:45
filename are characters..
like 'ABDDUT20513'13May06:03:45
i need it to be renamed as... (17 Replies)
Discussion started by: khman
17 Replies
LEARN ABOUT OSF1
rexecd
rexecd(8) System Manager's Manual rexecd(8)NAME
rexecd - The remote execution server
SYNOPSIS
rexecd [-s]
OPTIONS
Causes rexecd to check for the ptys keyword in the /etc/securettys file and to deny execution of the request if it is from root and on a
pseudoterminal.
DESCRIPTION
The rexecd daemon is the server for the rexec(3) routine. The server provides remote execution facilities with authentication based on
usernames and passwords.
The rexecd daemon listens for service requests at the port indicated in the exec service specification; see services(4). When a service
request is received, the following protocol is initiated: The server reads characters from the socket up to a null (` ') byte. The resul-
tant string is interpreted as an ASCII number, base 10. If the number received in step 1 is nonzero, it is interpreted as the port number
of a secondary stream to be used for the stderr. A second connection is then created to the specified port on the client's machine. A
null-terminated username of at most 16 bytes is retrieved on the initial socket. A null-terminated, unencrypted password of at most 80
bytes is retrieved on the initial socket. A null-terminated command to be passed to a shell is retrieved on the initial socket. The
length of the command is limited by the upper bound on the size of the system's argument list. The rexecd server then validates the user
as is done at login time and, if started with the -s option, verifies that the /etc/securettys file is not setup to deny the user. If the
authentication was successful, rexecd changes to the user's home directory, and establishes the user and group protections for the user.
If any of these steps fail, the connection is aborted with a diagnostic message returned. A null byte is returned on the initial socket
and the command line is passed to the normal login shell of the user. The shell inherits the network connections established by rexecd.
DIAGNOSTICS
Except for the last diagnostic message listed, all diagnostic messages are returned on the initial socket, after which any network connec-
tions are closed. An error is indicated by a leading byte with a value of 1 (0 is returned in step 7 above upon successful completion of
all the steps prior to the command execution). The name is longer than 16 bytes. The password is longer than 80 bytes. The command line
passed exceeds the size of the argument list (as configured into the system). No password file entry for the username existed. The wrong
password was supplied. The chdir command to the home directory failed. A fork by the server failed. The user's login shell could not be
started. This message is returned on the connection associated with stderr and is not preceded by a flag byte.
CAUTIONS
IndicatingLogin incorrect as opposed to Password incorrect is a security breach that allows people to probe a system for users with null
passwords.
FILES
Specifies the command path
RELATED INFORMATION
Functions: rexec(3)
Files: securettys(4) delim off
rexecd(8)