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
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
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
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
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
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.
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
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:
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?
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.
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 ?
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
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 ?
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 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:
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".
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
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.
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?
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.
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)
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.