General :: Sysdate Setting In Bash_profile?

Mar 29, 2010

this is my situation,I'm taking backup for some files in that i need to append the sysdate so that i can easily identify which file has to restore at some point,I've tried the following In my bash_profile(RHEL4)

Code:
SYSDATE=`%d/%m/%Y`
export SYSDATE

i tried after relogin to another terminal ,but when i give the following command

Code:
[malick@home ~]$ echo $SYSDATE
[malick@home ~]$ source ~/.bash_profile
bash: fg: %d/%m/%Y: no such job

I don't know what to do ,once the sysdate is set i can add that element to my script where it takes the back up

View 2 Replies


ADVERTISEMENT

General :: Setting JAVA_HOME In .bash_profile Doesn't Work

Apr 15, 2009

I have some Flex and Java files which can be compiled with JDK1.5. My server was already loaded with 1.4 (at path /usr/bin/java) and our sys admin(I dont know why) copied another JDK, JDK 1.5 at path /usr/java/jdk1.5.0_16/. It seems very easy to use this java. Just set the path in .bash_profile. I did it and now if I run which java I still see the path for java 1.4 not java 1.5. Am I doing something wrong? Following is actual entry from bash_profile

Code:
PATH=$PATH:$HOME/bin
PATH=/usr/java/jdk1.5.0_16/bin:$PATH
JAVA_HOME=/usr/java/jdk1.5.0_16/
export PATH JAVA_HOME

View 3 Replies View Related

General :: .bash_profile Not Loading ?

Apr 1, 2010

Whenever I reboot my fedora core 12 box I find that my .bash_profile does not load... I have to issue source ~/.bash_profile

How do I get this to load automatically each time?

View 14 Replies View Related

General :: .bash_profile Not Activated On Login?

Oct 27, 2010

I have loaded oracle 10g. I have made a shell namely Menu and copied it inside the /home/oracle directory. In the .bash_profile, entry has been made sh ./Menu. I want to execute this Menu whenever I login as oracle user.My system does not executeell. However, I am able to activate this shell by typing sh ./Menu from $ prompt

View 2 Replies View Related

General :: Bash_profile [ Unexpected End Of The File ]?

May 18, 2011

I'm trying to edit the bash_profile but I'm getting this error."/.bash_profile: line 46: syntax error: unexpected end of the file"Here is my bash_profile.

# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then

[code]....

View 3 Replies View Related

General :: Unable To Find .bash_profile

Dec 13, 2010

I have installed oracle11g R2 on ubuntun 10.04, upon completing I need to set the profile with environment variables but, could not locate the .bash_profile

View 11 Replies View Related

General :: Edit The .bash_profile Being A Normal User In Red Hat?

Feb 18, 2011

I have installed Oracle Database server in Red Hat Linux for the first time. I edited the .bash_profile first time & defined some parameters like "export ORACLE_SID =orcl".I quit the editing. Then When I entered ". .bash_profile" it got error " not a valid identifier" it shows like "bash: export: '=orcl' : not a valid identifier for all the lines I edited it shows same error beacause I think I put a space in between "ORACLE_SID" & "=orcl".

So when I tried to edit that using "vi .bash_profile" being a normal user. It doesn't allow me editing.when I try to delete that space (because I think I have got error) using Backspace key on my computer,,it just moves the cursor to left in stead of deleting that space.

View 5 Replies View Related

General :: Slackware 13.0 ~/.bash_profile Not Running At Login?

Jan 29, 2010

I'm logging in as a user at run level 3.I have my .bash_profile in my home directory

Code:
if [ -f ~/.bashrc ]; then
source ~/.bashrc

[code]....

View 8 Replies View Related

General :: Where To Write JAVA_HOME? In .bashrc Or In .bash_profile

Feb 9, 2010

Where to write JAVA_HOME? In .bashrc or in .bash_profile? What's the difference?

View 1 Replies View Related

General :: Errors In .bash_profile And Startx Does Not Load Automatically?

Sep 4, 2010

I have installed Damn Small Linux on an old laptop.very boot reports that the SSH has loaded as I have configured it to do so but does not load startx as instructed in .bash_profile.After bootup, the following is reported by the system.-bash: /home/dsl/.bash_profile: line 12: syntax error: unexpected end of fileThis is the content of the .bash_profile

#!/bin/bash
export IRCNICK=DSL
export DISPLAY=:0

[code]....

View 1 Replies View Related

General :: -bash: /home/rb27/.bash_profile: Permission Denied

Sep 9, 2011

I have tried changing permissions and I have looked for a solution, but the error still exists.In fact it gives me a different error every time I log in.

Could not chdir to home directory /home/rb27: Permission denied

here is a snippet of what I get when I use the command ls -al:

drwxr-xr-x 16 root root 0 Sep 8 18:28 .
drwxr-xr-x 23 root root 4096 Feb 5 2011 ..
d????????? ? ? ? ? ? ajd74
d????????? ? ? ? ? ? ban45
d????????? ? ? ? ? ? rb27

I cannot log in as root since the permission is denied

View 1 Replies View Related

Fedora :: Bash_profile For ALL Users?

Oct 27, 2009

There are things that I want to have for all my users.For example, I want to set the java_home, the PATH, I want to mount a drive, etc ...I understand there is a .bash_profile file that does that, but it seems I need to copy the code for all users every time.Is there some kind of MASTER file that sets all those things before running the individual profile files?

View 3 Replies View Related

Ubuntu :: How To Edit The .bash_profile

Mar 10, 2011

I have just started using ubuntu and use the terminal a lot.I would like to edit it(blue username).I have tried changing the .bash_profile file, but my changes do not seem to affect it.I also added an alias to bash.bashrc but my computer started looping at login I reinstalled. I dont know if that caused it (I doubt it, but I didnt do anything else, though undoing it didnt work). what to put in the .bash_profile file. It is currently blank, and nothing I add seems to work (using online tutorials).Using ubuntu 10.10 (netbook) and normal - I would like to edit the netbook edition, though I thought they would be the same.

View 2 Replies View Related

Fedora :: .bash_profile Is Sourced Rather Than .bashrc?

Jan 17, 2010

I am curious since "Run command as a login shell" is UNTICKED (I think for all new users) under Gnome Terminal -> Menu Bar -> Profiles -> Edit -> Title and Command , BUT .bash_profile is sourced. I thought .bashrc should be sourced instead ?

View 6 Replies View Related

CentOS 5 :: Executing Bash_profile Everytime?

Jul 21, 2010

I have installed Centos 5 for Oracle on my PC. I observe that everytime I have to execute .bash_profile. Otherwise I get command not found message.How to change this behaviour so that it executes automatically everytime I open a new terminal or a tab.The bash_profile is as follows. I notice that the same entry is in another Centos 5 installation in another PC, But I don't have to executeeverytime the bash_profile .

# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then

[code]....

View 1 Replies View Related

CentOS 5 :: .bash_profile Contents Of Root To Pass?

Jun 18, 2010

I lost my root .bash_profile. Have anyone, the .bash_profile contents of root to pass me?

View 3 Replies View Related

General :: Setting Time And Date / Setting Calendar Format?

May 14, 2010

Have installed Suse 11.2. how can I change the calendar format dd/mm/yyyy and how to configure the system to sync.from an ntp?

View 1 Replies View Related

General :: Network Setting / Change Eth0 Setting?

May 4, 2010

I have a ubuntu server , can advise if I want to change the network setting ( eg. IP address , gateway address etc ) , which one is the configuration file ? for example , if I want to change eth0 setting , what file I should update ?

View 10 Replies View Related

Slackware :: .bash_profile, "-bash: export: Command Not Found"?

Dec 31, 2010

I was trying to get rid of qtconfig's error message "QGtkStyle was unable to detect the current GTK+ theme.".

So I created the file ~/.gtkrc-2.0 with this content:

Code:
gtk-theme-name="Xfce"
Then I had to read this file after logging in (or at least, when I start X. So I created a ~/.bash_profile file with the following line:

Code:
export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
When I now login, I get this message:
Code:
-bash: export: command not found
Any idea what could cause this problem?

I am running Slackware 13.1.

View 3 Replies View Related

Programming :: Lost Gcc .bash_profile Paths - Error: "stdio.h: No Such File Or Directory Gcc Was Installed And Configured Correctly"

May 5, 2010

I tried compiling a simple Hello World with gcc but didn't have any luck. I got this message: Code: junk.c:1:19: error: stdio.h: No such file or directory gcc was installed and configured correctly at one point but I think I changed the the .bash_profile since then. I checked where stdio.h lives. The path is:

[Code]....

View 2 Replies View Related

General :: Setting Up My Ssh ?

Aug 5, 2011

Yesterday I installed Centos on my "old" pc. I followed this tutorial to setup my ssh I followed all the steps but when try to connect from my laptop to the server (with putty) it says "Network error: connection timed out".

View 3 Replies View Related

General :: GNU/screen Not Setting $STY

Jan 25, 2011

I'm trying to script the spawning of GNU/screen windows by using commands of the form screen <CMD>.

For some reason when I start GNU/screen (by hand), the shell that it starts in window 0 (/bin/bash) does not contain a $STY environment variable. Without this commands like screen vim start a nested screen session, not another window as I want.

My environment is somewhat unusual. Here's how I end up in it:

ssh robm@somehost
sudo su sharedaccount
script /dev/null
screen

The script /dev/null step exists because the TTY device allocated for the robm user cannot be accessed by the sharedaccount user. The script command allocates a new TTY that is owned by the user that invoked it, solving that problem.

If I skip the sudo and script steps, GNU/screen sets $STY just fine. In other words this works just fine:

ssh robm@somehost
screen

Presumably something about sudo and script interferes with screen

View 1 Replies View Related

General :: Setting Up A Network In Lab?

Nov 10, 2010

I work in a small research lab in my college and we work on Windows. I am planning to switch all the computers into Linux create a network.

This is a small job in the first step. I need to hook up 3 computers together such that they all communicate with a central computer (server). The users will have to log on to their accounts and run their work from the central server, be able to run applications (vlsi, CAD) stuff from the server. I (as root) should be able to take backups (using crontab I guess) and be able to create new users, administer.

Can anyone direct me to a manual or a website or a previous post that goes through these steps. I searched the forums and was lost in my effort

I only have used Linux on a standalone PC and have never networked before.

View 2 Replies View Related

General :: Setting Up Secure Ftp

Aug 3, 2011

setting up secure ftp on linux

View 3 Replies View Related

General :: Setting Up An OS For Custom In Car PC?

Oct 24, 2009

Basically the computer will have to do nothing other than run some custom software that interfaces with the vehicle's systems via a USB FDTI board and render to an 8" touch screen via OpenGL. User input will be via the said touchscreen, and audio output will eventually come into the equation. The target vehicle(s) will be extensively modified for the project, and I'm hoping the software will eventually override features such as the immobiliser, so an extremely fast boot time will be essential.

I have one of those Via C7 fully integrated mini ITX motherboards, much of the onboard hardware will be useless besides two USB ports and a SATA port, so could be completely removed from the kernel if necessary to achieve a fast boot. If some BIOS hacking is required I'd happily look at that too. I'm a recently graduated software engineer, and can comfortably use Linux (I'm using openSUSE for developing the software) but don't have a clue where to start with the OS; if I should be downloading and modifying an existing distro or trying to build one from scratch somehow?

View 4 Replies View Related

General :: Setting Up A New Office

Dec 26, 2009

I have been assigned to setup a new office.I will be responsible for administrating an office network with around 50 users, which would grow to 150 users in a year.I need suggestions about what plan I need to make before starting up with the project. I need help with Network Setup? What kind of network IP I need to setup.
Any tutorial which talks about the Simple Network Setup for 200 users.

View 5 Replies View Related

General :: Setting Up Wireless With DSL

May 23, 2010

I'm booting DSL off of a USB key on a used laptop I just got. wireless, starting with what the wireless card is, then which driver is needed, and then I think I can use ndiswrapper to install the driver and go from there. I was told to do 'lspci -knn' (not all because I'm retyping the output on my computer that has internet working)

Code:
00:00.0 Host bridge [0600]: Intel Corporation mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller hub [8086:27a0] (rev 03)
00:01.0 PCI bridge [0604]: Intel Corporation mobile 945GM/PM/GMS, 943/940GML and 945GT Express PCI Express Root Port [8086:27a1] (rev 03)

[Code]....

(I left out a lot, let me know if the results of any of these might help: Audio Device, USB Controller, ISA bridge, IDE interface, SMBus, VGA compatible controller, Firewire)

View 3 Replies View Related

General :: Setting Permissions On Unzip?

Apr 2, 2010

I wanted to assign ownership of my choice to my zip file while unzipping so I am using the command:

unzip yourfile.zip|awk -F": " '{print $2}' | xargs chown user.group

I also want to give 705 permissions to all directories and 777 to all files on unzipping?

View 3 Replies View Related

General :: Setting Up A Second Monitor In Centos?

Nov 16, 2010

I have CentOS installed on my laptop. I hooked up my TV via VGA and it works, just not as I'd like it to. The left side (on the tv) is cut off, like the image is justified too far left. I want it to be centered, but I also want to use a different resolution. You see, I use a netbook, and thus my laptop screen is tiny, meaning some things cant fit in the same window without scrolling. I want my TV to fix that for me.

View 1 Replies View Related

General :: Setting Tcp Ip Argument While Booting Up?

Nov 23, 2010

how to set the tcp ip parameter while linux boots up in my board.

Currently i am giving it like : tcp ip=:::::eth0:dhcp

If i have my own static ip and its corresponding mac-id can i change it for my board when i boot up.

View 1 Replies View Related







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