06-26-2019
Don't leave people guessing, provide adequate info. Check your mysql manual:
- What does "ERROR 1" mean?
- What does "Errcode: 2" mean?
- What's the code in "line 1" that tries to "create/write" the files?
Do the necessary directories exist?
What be their permisions?
Can you create files in there by using shell commands?
Can other users create those files?
Show the results of your attempts.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a file that comes in as 20081002_invoices.txt and needs to go out as
invoices(20081002).xls When ran this file should have three seperate fields as follows:
column1 column2 column3
data1 data2 data3
when i run the script it produces the invoices(20081002).xls but moves... (1 Reply)
Discussion started by: Pablo_beezo
1 Replies
2. Shell Programming and Scripting
Hi All,
I am very new in programming. I need some help.
I have one input file like:
Number of disabled taxa: 9
Loading mapping file: ncbi.map
Load mapping:
taxId2TaxLevel: 469951
--- Subsample reads (20%): 66680 of 334386
Processing: tree-from-summary
Running tree-from-summary... (21 Replies)
Discussion started by: iammitra
21 Replies
3. UNIX for Dummies Questions & Answers
I`m having output file which contain following no which changes every time i run script.The number given below are there in file and i have to fatch them from file.
12
15
56
158
365
165
598
568
265
256
258
now i want to use above number from output to input as $j
r=`/omp/bin/ICIC... (1 Reply)
Discussion started by: nitin_aaa27
1 Replies
4. Shell Programming and Scripting
I'd like to do an if / else if condition and print to different files.
Something like:
awk '{
if ($1 == "yes") print $2, $4 < infile > outfile1 ;
else if ($1 == "No") print $2, $4 < infile > outfile2
}'
Obviously I don't know the syntax.
Thanks so much. (5 Replies)
Discussion started by: dcfargo
5 Replies
5. Programming
Hello,
Compilation of the line "cout = outFile" throws error
"Error: std::ios_base::operator=(const std::ios_base&) is not accessible from std::ios ::operator=(const std::ios &)."
outFile is declared as "static ofstream".
Thanks,
Shafi (3 Replies)
Discussion started by: shafi2all
3 Replies
6. Shell Programming and Scripting
Hi Everyone,
I have two files i.e. one file2 contains today's data and the other file1 contains Yesterday's data.
The data in the files contains 226 columns and the data for the coulums separated by a Pipe "|" delimiter.
Now, I have 4 Primary keys (coulumns) by which I have to compare file2 and... (10 Replies)
Discussion started by: filter
10 Replies
7. Shell Programming and Scripting
Hi
I am writing a perl script which checks for the specific column values from a file and writes to the OUT file.
So the feed file has a header information and footer information.
I header information isaround107 lines i.e.
Starts with
START-OF-FILE
.......
so on ....
... (11 Replies)
Discussion started by: filter
11 Replies
8. UNIX for Dummies Questions & Answers
Hi guys!
So I have a program that allows the user to enter a file, change some characters (for example, a changes to t, etc.) and then save the new file under a new name. However, I need to press carriage return twice for the program to end. I was just wondering if anyone knew of a way for the... (2 Replies)
Discussion started by: PerlNutt
2 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I'm trying to use pyExcelerator's module "xls2csv" converter in ubuntu.
The following works great, except the standard out is in the terminal.
sudo python xls2csv.py test.xls
I want the csv delimited output to be redirected to a file. When I enter....
sudo python xls2csv.py test.xls... (5 Replies)
Discussion started by: jdilts
5 Replies
10. Solaris
Hello,
Each time a user log on to host, they receive below error:
-sh: /tmp/outfile: cannot create
Example:
$ ssh host
user@host's password:
Last login: Fri Dec 4 08:17:28 2015 from client.ref
|-----------------------------------------------------------------|
-sh:... (2 Replies)
Discussion started by: feroccimx
2 Replies
DBD(1) Netatalk 2.2 DBD(1)
NAME
dbd - CNID database maintenance
SYNOPSIS
dbd [-evx] {-d [-i] | -s [-c|-n] | -r [-c|-f] | -u} volumepath
DESCRIPTION
dbd can dump, scan, reindex and rebuild Netatalk dbd CNID databases. It must be run with appropiate permissions i.e. as root. dbd -s|-r
can be run on active volumes, but dbd -rf, which wipes the db before rebuilding it, checks and enforces that the chosen volume is not in
use.
COMMANDS
-d
Dump CNID database. With -i dump indexes too.
-s
Scan volume:
o Compare CNIDs in database with volume
o Test if .AppleDouble directories exist
o Test if AppleDouble files exist
o Report orphaned AppleDouble files
o Report directories inside .AppleDouble directories
o Check name encoding by roundtripping, log on error
o Check for orphaned CNIDs in database (requires -e)
o Open and close adouble files
Options:
-c Don't check .AppleDouble stuff, only check orphaned. -n Don't open CNID database, skip CNID checks, only traverse
filesystem
-r
Rebuild volume. With -f wipe database and rebuild from CNIIDs stored in AppleDouble files.
o Sync CNIDSs from database with volume
o Ensure .AppleDouble directories exist
o Ensure AppleDouble files exist
o Delete orphaned AppleDouble files
o Report directories inside .AppleDouble directories
o Check name encoding by roundtripping, log on error
o Delete orphaned CNIDs in database (requires -e)
o Open and close adouble files
Options:
-c Don't create .AppleDouble stuff, only cleanup orphaned.
-f Wipe database and rebuild from IDs stored in AppleDouble files, only available for volumes without nocnidcache option.
Implies -e.
-u
Upgrade:
Opens the database which triggers any necessary upgrades, then closes and exits.
OPTIONS
-e
Only work on inactive volumes and lock them (exclusive)
-x
Rebuild indexes (just for completeness, mostly useless!)
-v
verbose
WARNING
In order to be able to run -rf reconstructing the CNIDs in the database from the AppleDouble files, make sure you've run a -r rebuild
sometimes before, where the CNIDs then would have been synched between database and AppleDouble files.
Also be careful about the option nocnidcache. Avoid this option if at all possible, because if prevents you from being able to use -f.
CNID BACKGROUND
The CNID backends maintains name to ID mappings. If you change a filename outside afpd(8) (shell, samba), the CNID db will not know and not
reflect that change. Netatalk tries to recover from such inconsistencies as gracefully as possible. The mechanisms to resolve such
inconsistencies may fail sometimes, though, as this is not an easy task to accomplish. E.g. if several names in the path to the file or
directory have changed, things may go wrong.
If you change a lot of filenames at once, chances are higher that the afpds fallback mechanisms fail, i.e. files will be assigned new IDs,
even though the file hasn't changed.
SEE ALSO
cnid_metad(8), cnid_dbd(8)
Netatalk 2.2 12 Oct 2010 DBD(1)