06-12-2012
I suspect it means what it says; that it can't access the files. You generate that list by feeding a glob into ls and sed-transforming it, presumably to remove the absolute path. You will no longer be able to find those files unless you cd to the correct directory to do so or prepend the path you removed...
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi there
i write one awk script file in shell programing
the code is related to dd/mm/yy to month, day year format
but i get an error
please can anybody help me out in this problem ??????
i give my code here including error
awk `
# date-month -- convert mm/dd/yy to month day,... (2 Replies)
Discussion started by: Herry
2 Replies
2. Shell Programming and Scripting
I have written a basic fetching script. The script logs into an FTP site, downloads a .zip file, then unzips and moves the files to the necessary folders, then deletes them, etc.
The problem I have is if one of the files no longer exists on the FTP site or another part of the script fails, then... (3 Replies)
Discussion started by: daem0n
3 Replies
3. Windows & DOS: Issues & Discussions
Hello,
I know nothing about UNIX, ftp, etc. I am building an excel VBA macro which calls a .bat file. I've taken a pre-existing batch file and am trying to modify it to fit my purposes. I would be very grateful for some assistance.
Here is my .bat file:
echo off
set... (9 Replies)
Discussion started by: starcraftbud
9 Replies
4. Shell Programming and Scripting
I need help in the following script. I want to grep the sql errors insert into the error table and exit the shell script if there is any error, otherwise keep running the scripts.
Here is my script
#!/bin/csh -f
source .orapass
set user = $USER
set pass = $PASS
cd /opt/data/scripts
echo... (2 Replies)
Discussion started by: allinshell99
2 Replies
5. Shell Programming and Scripting
hello everyone
i am beginner on shell scripting .and i am working on my project work on ad hoc network
i wrote a batch (.sh) to do a looping and execute a tcl script i wrote before in each iteration ..but i got this problem "
syntax error near unexpected token `('... (1 Reply)
Discussion started by: marcoss90
1 Replies
6. UNIX for Dummies Questions & Answers
Hi ,
I Have Written A Simple Script To Check Greatest Of '2' Number When Execuating The Script I Am Getting The Below Error
SP11: if:not found
SP11: line 4:syntax error at line 5:'then' unexpexted
And The Program I Have Wrriten For This
#!bin/ksh
echo "Enter Two Numbers"... (3 Replies)
Discussion started by: anudeepkumar123
3 Replies
7. Shell Programming and Scripting
HI,
We are using two shell scripts, script.sh,env.sh, where env.sh will be called inside script.sh. The variable inside env.sh is used as $var in script.sh.But while running the script its not identifying that variable. Is there any permission needed to call a script inside another script.
... (3 Replies)
Discussion started by: banupriyat
3 Replies
8. Shell Programming and Scripting
Hi All,
Please hav a look at the below peice of script and let me know if there are any syntax errors.
i found that the below peice of Script is causing issue. when i use SFTP its working fine, but there is a demand to use FTP only. please find below code and explain if anything is wrong... (1 Reply)
Discussion started by: mahi_mayu069
1 Replies
9. Shell Programming and Scripting
I am getting the following error while passing parameter to a shell script called within awk script. Any idea what's causing this issue and how to ix it ? Thanks
sh: -c: line 0: syntax error near unexpected token `newline'
sh: -c: line 0: `./billdatecalc.sh ... (10 Replies)
Discussion started by: Sudhakar333
10 Replies
10. Shell Programming and Scripting
Hi All
when I execute from psql prompt, I get the result, when I try to automate
using a shell script, the query is not working
# `/usr/bin/psql -U postgres -d coba1 -c "select name from users where
"Date" > current_date - 30;"`
ERROR: column "Date" does not exist
LINE 1: select... (2 Replies)
Discussion started by: srilinux09
2 Replies
LEARN ABOUT CENTOS
dpkg-statoverride
dpkg-statoverride(1) dpkg suite dpkg-statoverride(1)
NAME
dpkg-statoverride - override ownership and mode of files
SYNOPSIS
dpkg-statoverride [option...] command
DESCRIPTION
"stat overrides" are a way to tell dpkg(1) to use a different owner or mode for a path when a package is installed (this applies to any
filesystem object that dpkg handles, including directories, devices, etc.). This can be used to force programs that are normally setuid to
be install without a setuid flag, or only executable by a certain group.
dpkg-statoverride is a utility to manage the list of stat overrides. It has three basic functions: adding, removing and listing overrides.
COMMANDS
--add user group mode path
Add an override for path. path does not need to exist when this command is used; the override will be stored and used later. Users
and groups can be specified by their name (for example root or nobody), or by their number by prepending the number with a '#' (for
example #0 or #65534). The mode needs to be specified in octal.
If --update is specified and path exists, it is immediately set to the new owner and mode.
--remove path
Remove an override for path, the status of path is left unchanged by this command.
--list [glob-pattern]
List all overrides. If a glob pattern is specified restrict the output to overrides which match the glob.
--help Show the usage message and exit.
--version
Show the version and exit.
OPTIONS
--admindir directory
Change the directory of the dpkg database where the statoverride file is also stored. Defaults to /var/lib/dpkg.
--force
Force an action, even if a sanity check would otherwise prohibit it. This is necessary to override an existing override.
--update
Immediately try to change the path to the new owner and mode if it exists.
--quiet
Be less verbose about what we do.
EXIT STATUS
0 The requested action was successfully performed.
1 For --list, if there are no overrides or none match the supplied glob.
2 Fatal or unrecoverable error due to invalid command-line usage, or interactions with the system, such as accesses to the database,
memory allocations, etc.
ENVIRONMENT
DPKG_ADMINDIR
If set and the --admindir option has not been specified, it will be used as the dpkg data directory.
FILES
/var/lib/dpkg/statoverride
File which contains the current list of stat overrides of the system. It is located in the dpkg administration directory, along with
other files important to dpkg, such as status or available.
Note: dpkg-statoverride preserves the old copy of this file, with extension "-old", before replacing it with the new one.
SEE ALSO
dpkg(1).
1.19.0.5 2018-04-16 dpkg-statoverride(1)