General :: Checking If Table Name Is Repeated In File And If Yes - Remove It ?

Jan 20, 2011

I have an output file that looks like this:

Quote:

Now if you see the first line:

Status for ACCOUNT_MISSING_FRM_RCIS_LINK- mismatch

Status for ACCOUNT_MISSING_FRM_RCIS_LINK is ACCOUNT_MISSING_FRM_RCIS_LINK- does not exist in DB

This should appear just once as :

Quote:

The same goes for last line.

For further information the ACCOUNT_MISSING_FRM_RCIS_LINK is a table name and it row count is taken from a log and then Database checked for the rowcount to see if it is a match,mismatch,or the table does not exist!

I am getting the desird output just that i need to do something to this output file.

View 13 Replies


ADVERTISEMENT

General :: Directory Hierarchy Getting Repeated In Mvfs File System

Feb 9, 2011

I have a mvfs file system mounted.

[code]...

View 1 Replies View Related

Ubuntu One :: Repeated Sync Of Nonexistent File

Sep 1, 2011

U1 is trying to sync a file which doesn't exist on any of the devices attached to the account nor in the cloud folder. I've tried using U1sdtool to stop it, including the following commands:

I've also tried actually creating a file of the same name that it keeps trying to sync in the hopes that it will latch onto that one instead, but no go. I tried deleting that file, but no go. It constantly loops through the same nonexistent file, over and over and over and over and over...

It also only does this on one device. It does not do that on the other devices.

And, yes, I've done u1sdtool --waiting, and there is the nonexistent file, on the list, with all of the real files that actually do need to be synced backed up behind it.

View 5 Replies View Related

General :: Command - Checking File Name ?

Mar 31, 2011

I need to check the file name e.g. testbla_word.txt

Is theire a command to search for only "bla_"?

So mainly, to check a part of a filename (not the entire filename, only a part of it)

View 5 Replies View Related

General :: Checking Path To File ?

Nov 14, 2010

I am trying to load a driver (xxx.ko) and uncertain if the path given is correct.

I do not have any direct access to my linux device, so I need a small script that will create a text file telling me if the file was found or not.

View 6 Replies View Related

General :: Red Hat 7.0 Fails At Checking Root File System

Jan 19, 2010

I have a Rad Hat 7.0 old Linux system that crashed due to power failure. On reboot the system goes to Checking Root File System and does 92.5% check and fails.

Here are the error messages I get.

I don't know what to do at this point so I say yes and it goes in some wierd mode.

SO I ran fsck manually but I get an error PARALLEIZING FSCK.

I can't fix the corrupted stuff for the system to reboot. THIS IS VITAL.

View 11 Replies View Related

General :: How To Edit Contents Table Of Pdf File

Jul 17, 2011

how do i edit the "contents" of a pdf file. I tried pdfedit but I cant find where the content table list is stored.

View 1 Replies View Related

General :: Read Data From Text File And Output Into A Table?

Apr 12, 2010

I'm having a slight dilemma on reading data from a text file and outputting it into a table then displaying it. Basically I'm writing a shell script that takes information from text files then outputs the data into a table with 4 headings.he extracting of the data is fine, but creating a table i'm having problems with. I think it is possible to do it using the awk function, but so far i'm having a lot of difficulties.

View 14 Replies View Related

Programming :: Bash - Remove From Text Table?

Nov 7, 2010

i have a table in a text file. How can i remove from that table for example "SLS= " if the value is empty? Is it possible to do it in bash awk or sed? [URL]

10.25 SLS=* G.V.=* BBU=122 G.V.=14
10.28 SLS=196 G.V.=198 BBU=* G.V.=*
10.08 U.T.=* I.M=--
10.15 U.T.=-0.522 I.M=*

View 1 Replies View Related

General :: Recover File Using FAT Cluster Chain Instead Of Using Stored Length In Its Table?

Feb 1, 2011

I'm trying to recover movie files from my TNT receiver hard drive but it corrupts its FAT32 allocation table (crappy cheap device...)

Using dosfsck is useless because the correct file length is the cluster length, not the (shorter) one in the table, and dosfsck only proposes to shorten the file, which I won't do.

Question: how to recover a file using the FAT cluster chain instead of using the stored length in the FAT table?

View 1 Replies View Related

General :: Shrinking Broke Partition Table - EXT4 File System?

Aug 23, 2010

In an attempt to shrink my Data partition on my 500GB drive I had succeded in shrinking it but I think I have broken the partition table as now it refuses to mount. When trying to mount I get this error mount: wrong fs type, bad option, bad superblock on /dev/sda2 I have done some searching around but most fixes haven't worked because they are based on ext2/3 File systems and this partition is ext4. Using Ubuntu 10.04 x64.

View 2 Replies View Related

General :: What Is The Translation Table And Referance Table In Any DB

Feb 25, 2011

what is the translation table and referance table in any DB (with referance to Data conversion)

View 2 Replies View Related

General :: How To Schedule For A Repeated Task

May 2, 2010

I need to schedule for a repeated task on my Linux, as the followings:

-) Telnet to a remote node
-) Issue a command
-) Capture the output in a log
-) Logout from Telnet
-) Wait for a prescribed time interval
-) Then redo , but append the subsequent output in just on file

know which options do we have to write such a task?

View 7 Replies View Related

General :: Define A String Of Repeated Characters?

Feb 5, 2011

this seems like it should be a simple thing, but I can't find it. Is there a bash shell command that allows you to create a string of repeated characters? Like a string of 100 '*'?

View 6 Replies View Related

Programming :: PHP Auto Removes Stale Sessions On It's Own But Doesn't Remove From MYSQL Table

Aug 24, 2010

I know PHP auto removes stale sessions on it's own, but that doesn't remove them from the MYSQL table. So I was gonna make a cron script that ran once every hour that removed any MYSQL shopping cart item from the table if the original session_id that created it does not exist anymore.

From my understanding a session_id is an "actual" file located somewhere on the harddisk (is it not? correct me if I'm wrong), so I was going to do a simple check for each item in the shopping cart to check for it's original session file, if it didn't exist on the harddisk, then simply remove it from the mysql table.

View 1 Replies View Related

General :: Remove Write-Protected File - Will It Actually Delete The Password File?

Jul 30, 2010

When I ls -l /etc/passwd, -rw-r--r-- 1 root root /etc/passwd When I login as myself, and rm /etc/passwd, it asks: rm: remove write-protected file '/etc/passwd'? If I say yes, will it actually delete the passwd file?

View 1 Replies View Related

General :: New Install Of Debian Of PPC G4 Not Booting With Repeated Message - Drive Not Ready

Mar 17, 2010

I just installed Debian onto a PowerPC G4 Tower with two hard drives. I left OS X on one of the drives and reformatted and installed Debian on the other, using the installer from the 60Mb ISO from the Debian website.

The installation had no issues and it starts yaboot and Debian no problem.

After about 2 minutes of the booting up process, it starts to output this, every five seconds:

While this happens, other things still continue load and it outputs occasional messages and even gets to "Debian Login:" where if you type really quickly and hit enter, it takes it and prompts for "Password:" right after the next round of the above messages.

I have not been able to completely log in yet.

I can start up into the shell as root with "Linux single" with no problems.

I think this might have something to do with the second Mac OS Formatted Hard drive. I have considered unplugging that drive and testing it that way, but I am looking for a solution to turn off whatever script is running that every five seconds and failing, regardless of what it is trying to do.

View 9 Replies View Related

General :: Automating USB Drive Configuration Of Partition Table, Partition And File System

Jan 26, 2011

I have tried to automate the configuration of a usb drive with not much success.

The problem that I have is that I have a large amount of usb drives that have a partition table of type "loop" and I need to change them to "msdos". The size of the drives vary and I need to use FAT32 or FAT16 file system.

I've tried various partitioning commands and gui applications but cant find one that I can give a one line command to to set the partition table, maximum partition size and file system.

View 9 Replies View Related

Red Hat :: Checking Last File Modification Time

Mar 5, 2010

I don't think there is a way of doing this with date or clock commands. But maybe they are writing to some file and I can take a look at the file's modification time. dmesg and /var/log/messages show nothing relevant.

View 1 Replies View Related

Ubuntu :: Checking Disk Mean Checking All Partitions On Hd?

May 10, 2010

Sometimes at startup I get this message "Checking disk 1 of 1". Does that mean it's checking all partitions on the hd? After a bad shutdown there is no prompt for fsck to run and the system just boots up. In fstab I have both options set to "1" for the partition Ubuntu is on, all others set to "0". Any ideas on both?

View 3 Replies View Related

Ubuntu :: Checking Status Of File In Terminal?

Jun 1, 2011

How do I check if a file is a soft link in the terminal? They're usually color coded, but I gave permissions to a colleague and now every file is green. Is there a simple command for this?

View 3 Replies View Related

General :: Remove The Last From A File?

Mar 10, 2010

I have a file sample.xml . If I do "vi sample.xml" I can see the following

bash$ cat sample.xml
<content/>
bash$
but I don't want the last character so that it becomes following
bash$ cat sample.xml
<content/>bash$

View 12 Replies View Related

Fedora Security :: Easy Integrity File Checking ?

Feb 9, 2010

How to do an easy file integrity checking on fedora 11 ? just to make sure that the necessary core os files are not corrupted using rpm and yum.

View 2 Replies View Related

OpenSUSE Install :: Checking The ISO File's Checksum Before Burning?

Apr 12, 2010

I downloaded the DVD ISO version of OpenSuSe version 11.2 64bit from openSUSE. I checked the iso file checksum after downloading and it was correct. However after burning to DVD i booted from the disc and started the install. After getting passed the initial settings and it starts to extract all of the packages each file fails the checksum and will not install. I tried downloading again on a different computer and burning again using UltraISO using the Disc-At-Once method, again checking the ISO file's checksum before burning.

It still gives the same errors. So i loaded windows and started the windows based install and my anti-virus (Kaspersky) says the disc is infected with a trojan. How can the disc be infected when the ISO file's checksum is correct?. The computer that i am using to burn the disc is virus free according to Kaspersky and Norton Technician Toolkit.

View 7 Replies View Related

Ubuntu :: Checking File Integrity After Power Loss 9.10?

Feb 24, 2010

recommend any utilities that would check the hard drive and its contents (if they are still good) following a power outage?

View 1 Replies View Related

Ubuntu :: Checking For C++ Compiler Default Output File Name?

Feb 25, 2010

checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables See `config.log' for more details.

View 4 Replies View Related

Ubuntu :: Checking If File In /root Directory Exists?

Jun 6, 2010

I want to create a file in the /root directory and then make sure it exists. The following code keeps telling me that the file doesn't exist even though it does.

Code:
#!/bin/bash
echo -e "username=someusername
passwordsomepassword" | sudo tee /root/.credentials
if [ -e /root/.credentials ]; then
echo "File exists!"

[Code]...

[Edit] Added second double quotation mark at the end of "somepassword"

View 5 Replies View Related

General :: Remove File From The Dir With Different Permisison?

May 25, 2011

Dir - test - ls -ld shows ls -ld testdrwxr-xr-x 2 joe stduser 4096 May 25 16:25 testinside test dir :-rw-r--r-- 1 admin stduser 0 May 25 16:25 a.txtHow to remove a.txt with out using sudo ..I just tried sudo -u admin rm test/a.txtrm: cannot remove `test/a.txt': Permission denied

View 3 Replies View Related

General :: How To Remove .tar.gz File / Slackware 13 - 37

Jun 14, 2011

I installed the wrong file and now I would like to remove it. It was one of those .tar.gz files you have to install with ./configure, make, make install.I suspect files were installed all over the place.Is there a utility for removing a .tar.gz file ?

View 2 Replies View Related

General :: Owner Of File Cannot Remove It

Mar 16, 2010

I can't remove a file where I am owner of :

Code:
[jonas@webserver html]$ ls -l | grep file
-rw-rw-r-- 1 jonas jonas 3323 2010-03-15 20:33 file.php
[jonas@webserver html]$ rm file.php
rm: cannot remove 'file.php': Permission denied
The directory that holds this file is html :

Code:
[jonas@webserver mysite]$ ls -l
drwxr-xr-x 2 root root 4096 2010-03-15 18:32 cgi-bin
drwxr-xr-x 9 apache webusers 4096 2010-03-15 20:34 html

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved