General :: Want To Format Bash Errors

Jun 8, 2011

I am using Fedora 14 and when I am executing a file:

#!/bin/bash
asd #assuming this command does not exist

I am getting following error:
/path/to/file: line 2: asd: command not found

I want to format it so it outputs error in same way as it would when it was executed from terminal:

$ asd
bash: asd: command not found

View 1 Replies


ADVERTISEMENT

General :: 'File Is Not In Gzip Format' - Error Exit Delayed From Previous Errors

Oct 23, 2010

I am trying to upload an IOS in the cisco NAC Appliance. The IOS version has to be updated as 4.8. I am getting the below error when i tried. File is not in gzip format Child return status 1 Error exit delayed from previous errors. I am using the below command to unzip the IOS file. tar xzvf ccca_upgrade-4.8.0-from-4.6.x.tar.gz.

View 3 Replies View Related

General :: Bash Script To Convert MPG Files To AVI Format?

Sep 19, 2009

I'd like to write a bash script to convert all of the .mpg files in a directory to .avi files. The ffmpeg part of this produces the kind of file that I want, but rather than changing the name of the input and output files each time that I run the script, I'd like to automate it. I've tried this script, but I get an error "command not found".

#!/bin/bash
cd /home/michael_s/golf_temp
1 for i in 'ls *.mpg' ; do
/usr/bin/ffmpeg.exe -i /home/michael_s/golf_temp/"$i" -map 0:0 -map 0:1 -pass 1 -vcodec mpeg4 -vtag xvid -f avi -b 1100k -vol 384 -mbd rd -s 640x480 -aspect 4:3 -acodec libmp3lame -ac 2 -ab 128k /home/michael_s/golf_temp/"$i".avi

rm -f /home/michael_s/golf/temp/"$i".avi
/usr/bin/ffmpeg.exe -i /home/michael_s/golf_temp/"$i" -map 0:0 -map 0:1 -pass 2 -vcodec mpeg4 -vtag xvid -f avi -b 1100k -vol 384 -mbd rd -s 640x480 -aspect 4:3 -acodec libmp3lame -ac 2 -ab 128k /home/michael_s/golf_temp/"$i".avi
done
fi
quit

View 5 Replies View Related

General :: System Call (not Bash Command) To Format Partition?

Feb 18, 2011

I'm working on Linux OS (Suse/redhat) and trying to format a linux partition from a c program. Is there a way to do this without using : 'system ("mkfs.ext4 /dev/sdxy")'

View 4 Replies View Related

General :: (small) Bash Script - Catching Syntax Errors

Sep 9, 2010

I've been trying to find a bug in this test script, but haven't been able to so far. I'm not lazy, I promise...just new to Bash so am having a hard time catching syntax errors. I call the script with the option -disableVenusBld, and it still prints "Starting build", which it shouldn't be doing right?

[Code]...

View 1 Replies View Related

General :: Warnings / Errors "not A Valid Identifier" At Bash Login

Jul 19, 2010

-bash: export: `/usr/java/default': not a valid identifier messages when we login as root to one of our server. This started occurring after a consultant installed software on the server. I have looked around in .bashrc, etc. for the error path so I can remove it, but can't seem to locate it. Does anyone have any tips on how to locate script line where this is being included, and/or trace the login procedure to find the culprit?

View 7 Replies View Related

Programming :: Change Data Format In A File Using Bash?

Mar 24, 2010

I want to change data format in a file using bash. The orignal is like:

Code:
1 abc 6 pqr
2 def 7 stu
3 ghij 8 vwx
4 kl 9 yz

[Code]....

View 9 Replies View Related

Programming :: Bash Script Cannot Run Functions - No Syntax Errors

Apr 23, 2011

I have this project which I've been working on essentially nonstop for the past three days and due to work I am running low on time. I'm new to Linux/Unix and my Teacher has assigned us a scripting project, due for Monday. I have All the functions for the project in a separate file which run as a daemon process when I log in. It has no syntax errors but my Script can not run the functions (I'm not sure where they go before or after the body) and I have one function I'd like you guys to take a look at. It has a Second menu leading to a case statement but it does not run after the Search. I'm Kinda tired of looking at the CLI but I have to finish this.

phoneEdi() {
directory=~/phonepro/directory
loop="y"
clear
tput cup 4 4; echo "Record Editor" .....

View 1 Replies View Related

Programming :: Bash Script Can't Handle Errors When Run By Cron

Jan 8, 2009

I have a script that that is supposed to send me an e-mail when a host is not responding to ping:

The script works fine when I execute it directly but when cron executes it, the ping error is never picked up by the script so the if statement is ignored.

View 4 Replies View Related

General :: Simple Script To Convert Datetime Format To UTC Format?

Oct 9, 2009

just wondering is there a simple script to convert datetime to UTC format. I have been searching different forums but most answers are for converting UTC to datetime. For example what is a simple command/script to convert todays datetime to UTC format i.e. '2009-10-09 11:47:59'.

View 10 Replies View Related

General :: Format A USB Hard Drive To Vfat Format But Can't?

Sep 15, 2010

I need some assistance in trying to format a USB hard drive to vfat format but can't seem to do so. I am currently using RHEL 5.3. I have tried the following commands and they all come back as "command not found"

mke2fs vfat /dev/sc1
fdisk vfat /dev/sdc1
mkfs.vfat /dev/sdc1

What am I doing incorrectly?? Can someone please point me in the right direction??

View 6 Replies View Related

General :: Change One Time Format To Other Format?

Jun 21, 2010

the time format i have used is %m:%d:%Y:%H:%M:%S eg- 06:21:10:13:29:18 and i want to convert it to 2010-06-21 13:29:18..

View 4 Replies View Related

General :: Types Of Fsck Errors - Fsck Errors Are Found On A System?

Jul 22, 2010

Can anybody tell me what kind of fsck errors are found on a system?

View 5 Replies View Related

General :: Write A Literal Bash Command In A Bash File?

Nov 29, 2010

I create a bash script that writes another bash file. But in the generated bash file I want to write a bash command in the file and not executing it.Here's my bash file:

Code:
#!/bin/bash
cat > ~/generateGridmix2data.sh << END

[code]...

View 6 Replies View Related

General :: Running Bash But Common Bash Commands Not Working?

Jul 17, 2010

below are the details of my system. I have bash as my current shell, some really common commands aren't working.

Do I need to do a re-installation of bash? Or how do I install a selection of bash commands which I need? (for example a subset of [URL])

Code:
root@sdptfw:~ # uname -a
Linux sdptfw.sdpt.co.za 2.4.36 #1 Tue Jul 22 13:13:24 GMT 2008 i686 i686 i386 GNU/Linux
root@sdptfw:~ # echo $SHELL$
/bin/bash$

[Code]....

View 13 Replies View Related

Ubuntu :: Errors - 18 Packets Transmitted, 0 Received, +12 Errors 100% Packet Loss Time 17038ms

Feb 22, 2010

I',m executing ping, but it didn't work, in order to find the mistake in my network I would like to know how to see the errors:

Code:
18 packets transmitted, 0 received, +12 errors, 100% packet loss, time 17038ms, pipe 4 I want to see this +12 errors. Could I do that?

View 2 Replies View Related

Programming :: Valgrind Output Showing Addresses Not Code Against Errors - 2 Errors From 2 Contexts (suppressed: 0 From 0)

Feb 26, 2010

I am running Valgrind on my program. It shows me two errors but mentions only addresses against them and not actual code even on a debug build.

The output is

==23002== Memcheck, a memory error detector.
==23002== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al.
==23002== Using LibVEX rev 1575, a library for dynamic binary translation.

[code]....

View 1 Replies View Related

Fedora :: Create A Pdf File In A3 Format From Two Sheets In A4 Format?

Apr 7, 2010

my school we want to print a magazine but we have problem with the format of the files. We need to create a sheet in A3 format from two sheets in A4 format. I was reading about the pdftk library but it doesn't do what i need.

View 4 Replies View Related

Ubuntu Multimedia :: Converting Any Video Format To 3gp Format?

Jul 21, 2011

converting videos to 3gp format.

i have installed transmaggedon software but it fails to convert because quicktime muxer plugin is not installed.

This plugin is not available in the repositories.

How can i get this video converter to work or what else can i do to be able to convert videos to 3gp format?

View 2 Replies View Related

General :: SSH Connection From BASH Script Stops Further BASH Script Commands

Dec 3, 2010

What happens when the script executes is that the ssh connection works and parks me at the remote hosts's shell login. Therefore, the "firefox" command refuses to execute. I need to know how to make the "ssh" connection occur, stay open, and go into the background so that the rest of the script can execute.If I could also do this with the "firefox" line so that the entire term window could be closed would also be helpful.

View 3 Replies View Related

General :: How To Format A Pen Drive

Aug 3, 2011

My pendrive has become read only. I want to format it using Linux - how do I do that?

If I run mkfs.vfat devsdc1, it doesn't work.

View 2 Replies View Related

General :: Burning Raw Format To ISO?

Mar 22, 2011

Here is my stupid question of the week. I downloaded an ISO image from SuseStudio and it came as a tar.gz and untarred it is a image.raw. How can I create an ISO image with from that format. SoRAW ----> ISO ---> to cdrom or DVD

View 8 Replies View Related

General :: How To Format A 3 TB Harddisk

Jun 20, 2011

I just bought a western digital of 3 TB. Unfortunately Gparted gives error. Gparted can create a about 2TB+1TB, but when it is the whole disk, it does not work.
I tried JFS and EXT4.

My kernel is code...

View 3 Replies View Related

General :: Windows .wma Format ?

Apr 6, 2010

I thought Linux couldn't do anything with Windows Media Audio files because the format is proprietary. So when a friend sent me a WMA file, I was surprised to find I could listen to it without needing to borrow a Windows-using computer. Is it only recording and saving in WMA format that we can't do? (And is it the same with the Windows movie format (.WMV)?

View 4 Replies View Related

General :: Format Pen Drive To Ext 3?

Jan 22, 2011

I have a Foxsat receiver/recorder. It allows me to take of programs to a pen drive up to 4GB. Well actually that is pretty useless when a film comes along. I was told to make my pen drive into an ext3 from a Linux OS. I have now OpenSuse 64bit. HOw can I format my pen drive and make it into an EXT3

View 3 Replies View Related

General :: Yum Errors On RHEL 5.3 Box

Jun 16, 2011

I am getting errors when I try to install any package on my RHEL 5.3 linux box. I've previously installed mc(midnight commander) using yum but recently it started failing.

I've inserted a log of a session below.
[root@anjanb ~]# yum install multitail
Repository engineering-update is listed more than once in the configuration
Repository engineering-install is listed more than once in the configuration
Repository emergency-update is listed more than once in the configuration
Repository emergency-install is listed more than once in the configuration .....
Trying other mirror.
Error: failure: repodata/primary.xml.gz from adobe-linux-i386:
[Errno 256] No more mirrors to try.

View 2 Replies View Related

General :: Checking ISO For Errors

Feb 26, 2010

I chose Mint 8 Fluxbox and have the iso. I cannot figure out how to check the iso for errors and the MD5 signature.I'm using Windohs XP so I tried to install MD5sum.exe. When I double click on it to run it all it does is flash and then nothing.When I type in the commands it says it can't find it or it can't read it or something.I may be typing the commands incorrectly. I'm just not understanding.I need to check the iso for errors but can't understand how to check it.

View 5 Replies View Related

General :: Best Format For Backing Up Data In Blu Ray

Jan 25, 2010

We are in the process of backing up our hard drives to Blu Rays. I am creating tar.gz files and burning them to Blu Ray.Is it possible to use a simple (preferably Python-based) solution for creating images of those tar.gz files, of a predetermined size (to fit in the Blu Ray), and simply burn this images to the disc?Do you have any other approach for creating physical back-up of your hard drives?

View 1 Replies View Related

General :: Format A Disk From GRUB?

Apr 11, 2011

Opensuse 11.4 seems to be creating problems with booting from USB devices. (I have read in a couple places that people are having similar problems.)

Every time I try to boot from a different live USB image, I see a GRUB screen flash and the hard disk starts to boot up. The only live image I have had success with booting was another OpenSuse 11.4, then I got the options to install or run live. I was thinking of just wiping the hard disk and seeing if that made a difference. Can I get into the grub limited command line, can i format from here? Is some other way of installing over the WAN from inside the Suse OS?

View 1 Replies View Related

General :: Orignal Restore DVD In ISO Format?

May 30, 2010

I have a problem I hope you can help me with. I have an Ausus EEEpc 4G with a 4GB SSD I DO NOT have an external CD/DVD but I DO HAVE an external USB hard drive I also have the orignal restore DVD in ISO format

View 4 Replies View Related







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