Remove Chars ^@ From Text File In Linux System Location

Hello Freinds,

This is Vijay. I am new this forum and current skills are oracle ERP. My report is generating a text file in linux system location
like /u02/positivepay/p1.txt

The file p1.txt when generated in window system it is seen as below.
003664831509O0000005005000000564300063017 Universal Incorporated
003664831509O0000005009000000297000063017 Universal Incorporated
003664831509O0000018012000001600000061517 Johnson Painting Specialists

When generated in linux system chars "^@" are seen before each letter from VI editor.
^@0^@03664831509O0000005005000000564300063017 Universal Incorporated
^@0^@0^@3^@6^@64831509O0000005009000000297000063017 Universal Incorporated
003664831509O0000018012000001600000061517 Johnson Painting Specialists

how to remove these chars and any special chars from the generated file


Thanks,
Vijay
Phoenix, Arizona


Similar Content



GRUB2 Scripts To Use Labels For Friendly Names

I am using linux mint and the grub menu gets configured automatically using scripts in /etc/grub.d. The menuentry that gets created is something like Code:
"linux mint (on /dev/sda1)"

. I use external drives sometimes and also have linux on my harddrive which I also switch between computers. It gets confusing when it says /dev/sda2 when it means something else. It boots fine because that actual boot command uses uuid. How can I change the text of the (script generated) description to also use partition labels or uuid (or the first few chars) just so I know which install will actually boot. like this: Code:
"Linux Mint (OFFICESSD)"
"Linux Mint (HOMEHDD)"
"Ubuntu (SANDISK)"
"Ubuntu (IMATION)"

I realise (maybe its the best way) I can change the "GRUB_TITLE=Linux Mint 17 Cinnamon 64-bit" in /etc/linuxmint/info but would rather a smoother way.

Folder Not Readable Or Writable By Any Other System Users

Hi all. I am tweaking my php.ini file and I do not understand the bolded text below...

http://phpsec.org/projects/phpsecinf...d_tmp_dir.html
Quote:
upload_tmp_dir

Test Description
Checks if the current upload_tmp_dir is a world readable or writable folder, and if it matches the common UNIX system temp directory.

Security Implications
upload_tmp_dir allows you to specify where uploaded files should be saved until the handling script moves them to a more permanent location. If this file is within the document root of the web site and/or accessible to system users other than PHP's user, it could be modified or overwritten while PHP is processing it. By default upload_tmp_dir is set to the system's standard temporary directory, which can typically be accessed by all system users.

Recommendations
Set upload_tmp_dir to a folder that is:
- outside the document root of your web site
- not readable or writable by any other system users

You can set upload_tmp_dir in the php.ini file:

; Set upload_tmp_dir to a safe location
upload_tmp_dir = /var/www/foo.bar/sessions

The setting can also be applied in apache's httpd.conf file, or an .htaccess file:

# Set upload_tmp_dir to a safe location
php_value upload_tmp_dir /var/www/foo.bar/sessions

Questions:
1.) What does the bolded text mean, and how do I do that?

**NOTE: I don't have VPS Root access, and am hoping this can be done using my regular account via SSH.

2.) Where would be a safe place to put these temporary files?

Sincerely,


Rob

Is There A Simple Way To Remove XP And Then Install Window 7 In A Dual Boot System ?

Hi guys,

For my dual boot system, I first installed window XP followed by Linux fedora 19 and the system has been booting and working fine without
problem.

Now, I would like to remove window XP and install Window 7,
so, I need to remove the partition window XP is on, and then
do a fresh window 7 install. Is there is simple and easy way
of doing this ?

I have window XP, a window 7 and a linux fedora installation disk.

Thanks.

User 247

EXT4 File System @ Server Side & Ext3 External Storage

Hi guys

We are urgently moving Oracle application to a backup server for some patching etc. The backup server is installed with Oracle 6.6 64Bit linux with default partitions. We found that the system has ext4 file system, while our external storage through HBA interface/IBM is formatted with ext3 file system.
Hence, please let us know what kind of performances issues we may come across, or the same could be ignored?

regards

Grub-pc Package Failed To Install On Dual Boot Windows 7 And Pinguy OS

After creating a bootable usb using Universal USB Installer. I booted up the sytstem (Dell Inspiron N4110) F12 boot on usb, did the install, everything went well until after copying files and then the error message that "The grub-pc package failed to install into /target.. So i continued without a boot loader and now am trying to figure out how to get it back.
Previously i did a perfect dual boot of Kali Linux wherein the Grub boot loader was present. I did however uninstall Kali, reclaim HDD space, and even use EasyBCD to remove Grub(i believe).
Also worth noting is that before this dual boot with pignuy and after uninstalling kali linux i did a complete reinstallation of my windows 7 system using the recovery HD.

Now i would like to know how i could get grub boot loader back onto my system so that i can boot up Pinguy OS. Thanks

An Error Occurred During The File System Check

Hi all!! Im new in this forum and also new at linux !!

I am installing an application that includes automatically the instalation of CentOS 6.3.

The server that hosts this application and OS had a power outage and then when i turn on the server again i get the error that you can see in this pictu http://postimg.org/image/7opm0xzel/

I have 2 disks in the system, 1 for the application and SO and other to store call recordings (thats what the application do, record calls!).

If I re-install the system it has no problem!! But i dont want to re-install the system every time i have a power outage because i lost too much and important information.

I have installed this application in other server and had no problem with power outage. In this server the diference is that it originally had raid and i "remove it" frome the BIOS. Maybe here is the problem??

Anyone can help me?? Remember im really new in linux !!

Send Emails In HTML Format Through Mailx

I have created a sql file and it will create a HTML file with query result.But I'm unable to retrieve a html body in my email instead am getting a mail body with html tags.Please help

sql----

--sample HTML report.
--
-- Usage: sqlplus LOGON @script OUTPUT_FILENAME
--

-- Activate HTML output and configure the generated markup.
SET MARKUP HTML ON SPOOL ON -
HEAD '<title>My Report</title> -
<style type="text/css"> -
table { background: #eee; font-size: 80%; } -
th { background: #ccc; } -
td { padding: 0px; } -
</style>'

-- Dump results to the file that is given on the command line.
SPOOL &1

-- Only dump to file, not to the terminal.
SET TERMOUT OFF

-- Titles and formatting of columns.
COLUMN name HEADING 'Name'
--COLUMN job HEADING 'Job Title'
--COLUMN salary HEADING 'Salary' FORMAT $99,990

-- The query
--
select tablespace_name from dba_tablespaces;
/

-- Close file, which also closes the HTML tags.
SPOOL OFF

-- Back to non-HTML output
SET MARKUP HTML OFF


mailx command----

mailx -s 'file system' c.bambarandage@prima.com.lk < sam.html

Thanks,
Charith.

Can No Longer Mount Data Dvds

For whatever reason, when I try to mount a data DVD I get the following message:

Unable to mount [disk name]
Error mounting: mount exited with exit code 1: helper failed with:
mount: mount point /media/cdrom does not exist

Yet, if I put a DVD video in I can play on any of my video apps, yet I also can't mount those in a file browser. I have no idea what has caused this. I haven't backed up data to disks in a long time, I only did so today because I'm running low on space in one of my drives.

I was told elsewhere that I needed to alter a file: /etc/udev/rules.d/70-persistent-cd.rules

But I have no idea how to do this, and what I found there does not look like what was shown. This is what my file looks like:

Code:
# This file maintains persistent names for CD/DVD reader and writer devices.
# See udev(7) for syntax.
#
# Entries are automatically added by the 75-cd-aliases-generator.rules
# file; however you are also free to add your own entries provided you
# add the ENV{GENERATED}=1 flag to your own rules as well.
# TSSTcorp_CDDVDW_SH-S223C (pci-0000:00:1f.2-scsi-1:0:1:0)
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:1:0", SYMLINK+="cdrom", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:1:0", SYMLINK+="cdrw", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:1:0", SYMLINK+="dvd", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:1:0", SYMLINK+="dvdrw", ENV{GENERATED}="1"

Any suggestions would be appreciated.

I Am Trying To Install Mukulu Linux On A Desktop That Has XP On It .

I have followed all the instructions I have got from the net and made boot-able DVD's and USB sticks several different ways as people advise. I have done the same with Mint 17. I have created a partition (26G) and follow the install instructions 1: English 2:Has at least 7.4G available drive space. 4: Is connected to the internet. 5: Here it shows a page where I think it should display the drive options (but does not) If I push the "install now" button it comes up with an error "No root file system is defined --Please correct this from the partitioning menu" I close the installer and look at the drives in GParted and they are all there and the one I created for Linux is PARTITION - /dev/sda4 FILE SYSTEM - ext4
MOUNT POINT - /media/makulu/0C43086E0C43086E LABEL - Lin
SIZE - 26.02 GB USED - 590.07 Mb UNUSED - 24.44 GB FLAG - (blank)
No indication on how to fix the "No root file system" problem. I have tried so many bits of advise that I am beginning to think that I may be better of sticking to windows (perish the thought)
Can anyone help?
Col

GPG: How Does A Gpg2Masterkey(THE Private Key) Store All The Info Of Its PubSub Keys?

For one user I generated a gpg2 key-pair. I exported these to ascii-armour text files as master.asc and pub.asc. Then took only the pub.asc onto the keyring of a second user on the same partition. I "signed" a simple text file (say trial.txt) with the master key and also transferred it to the home directory of the second user. The pub key on the second user's keyring could verify the signature on the signed text file (trial.txt.gpg) but could not decrypt it. Also, a file encrypted by the second user with the pubkey could be decrypted by the masterkey. Each key therefore has, embedded in its structure, information about child/parent keys. Can anyone thrown light on the actual method of incorporation of this mutual recognition in the key structures? Note:The same kind of recognition happens with sub-keys derived from the Master-key. Can't find any literature which details. Help pl.