Linux date command help........
Hi,
I have schedule RMAN Backup , means i have these backup copy into today date backup folder after previous date backup folder delete manually
DATECOMP='`date +%d%m%y`'
mkdir /oracle/backup/${DATECOMP}
above cmd is use automatically create today date dir , but if i have delete privious directory automatically , how can possible
means today date - previos date
Hi ,
simple ......
we have create directory through script
this folder contail todays backup
after next day same thing here create date wise folder and copy backup into this folder
e.g.>
create folder through script
20122007
copy this date backup copy into this folder
after next day
21122007
copy this date backup copy into this folder
my question is that how can delete previous folder automatically though script (20122007)
Similar Messages
-
On linux, run date command and got the following output:
#> date
Tue Apr 1 09:58:37 CST 2008
But java class got the Timezone is not correct.
My class is below:
import java.util.TimeZone;
public class T {
public static void main(String[]args) {
System.out.println(TimeZone.getDefault().getID());
System.out.println(TimeZone.getDefault().getDisplayName());
}The out put is:
#> java T
US/Pacific
Pacific Standard Time
Could you help me?
Edited by: kongxx on Mar 31, 2008 7:02 PMThis should be os environment, if I following this steps((http://www.wikihow.com/Change-the-Timezone-in-Linux) ) to change system timezone, the TimeZone.getDefault() method return correct.
Edited by: kongxx on Apr 1, 2008 7:38 PM -
How to execute linux sh command from inside CF
I am using CFMX 7,0,0,91690 Enterprise on Redhat Enterprise Linux 4.9 with Apache webserver 2.0.52. I have a coldfusion template that queries from a Postgresql 8.0 database, copies the data from the queries into a set of files in one folder on the linux server, and then has a CFEXECUTE tag at the very end that calls a bash shell script on the same server. The shell script takes the files from the one folder, merges some of their content together, moves them to another folder, adds header and footer, and sets ownership and permissions. These 2 scripts have been in place and working perfectly for several years now. No changes were made to content, permissions, or ownershop of scripts. Suddenly last Friday the coldfusion script seems to have lost its ability to execute the shell script properly. It does execute it and the shell script attempts to do some of the steps, but the resulting files are missing the content and have the linux environmental variables and their values displayed instead. Clearly its getting an error but that is not being reported back to me. After the CF script ends, if I manually execute the shell script from the linux command line, it works perfectly. I tried giving it more permissions but that did not help. Redhat support suggests I run the script with "sh -x" to get more detailed output for debugging, but I would need to do that from inside the CF script since that is where the problem is. Is it possible to execute a shell script from inside a CF script using a linux "sh" command in some way (instead of the cfexecute, just so I can see debugging info)? Thanks in advance for any suggestions. Julie
Thanks for the suggestion, tried that too:
<cfexecute name="/bin/sh" arguments="-x /bin/siscopy" outputfile="/home/coldfusion/sh_output.txt" timeout="600" />
still didn't work. Script ends with this coldfusion error: Timeout period expired without completion of /bin/sh
It does not complete the task of making the files, and the sh_output.txt file which is supposed to capture the -x output, is empty.
Thanks,
Julie -
I am a macbook pro user form last 2 yrs, recently i upgraded to Mountain Lion from Snow leopard. Since then operational speed is a major concern. Now It has crashed so very badly that I am scared of my data.Please help me.
Reinstalling Lion/Mountain Lion Without Erasing the Drive
Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu.
Reinstall Lion/Mountain Lion: Select Reinstall Lion/Mountain Lion and click on the Continue button.
Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless. -
Dear all,
I am relatively new for linux. I am exciting about the perfomance of linux.
Please can enyone explain how to resolve command help.
eg how can i identify the arguments of commands
what meaning by [] <> [ <> <> ]
# ifconfig --help
Usage:
ifconfig [-a] [-i] [-v] [-s] <interface> [[<AF>] <address>]
[add <address>[/<prefixlen>]]
[del <address>[/<prefixlen>]]
[[-]broadcast [<address>]] [[-]pointopoint [<address>]]
[netmask <address>] [dstaddr <address>] [tunnel <address>]
[outfill <NN>] [keepalive <NN>]
[hw <HW> <address>] [metric <NN>] [mtu <NN>]
[[-]trailers] [[-]arp] [[-]allmulti]
[multicast] [[-]promisc]
[mem_start <NN>] [io_addr <NN>] [irq <NN>] [media <type>]
[txqueuelen <NN>]
[[-]dynamic]
up ...
if i coud undestand it i can resolve the others.
Please help.
Message was edited by:
Upul IndikaIf you have hard time understand the simplified help message, you can always google the whole term on internet, there's plenty of resources.
Also, man is a lot more descriptive in most cases,
for example,
man ifconfig
ifconfig(1M) ifconfig(1M)
NAME
ifconfig - configure network interface parameters
SYNOPSIS
ifconfig [-m mod1[,mod2]...] interface [address_family]
[address[dest_address]] [parameters]
ifconfig interface [address_family]
DESCRIPTION
The first form of the ifconfig command assigns an address to a network
interface and/or configures network interface parameters. ifconfig
must be used at boot time to define the network address of each
interface present on a machine. It can also be used at other times to
redefine an interface's address or other operating parameters. If the
address_family is not specified, the address family defaults to IPv4.
The second form of the command, without address_family, displays the
current configuration for interface. If address_family is not
specified, ifconfig reports the details on all supported address
families. An exception is when the user has not configured any
interface with an IPv6 address, ifconfig does not display the IPv6
loopback interface.
Only a user with appropriate privileges can modify the configuration
of a network interface. All users can run the second form of the
command.
Arguments
ifconfig recognizes the following arguments:
-m mod1[,mod2]...
A list of modules that can be pushed on a stream
associated with an interface. The -m option can
be used to configure an interface manually with
the specified module names. There is no space
between the module names and only a comma is used
to separate the module names. If the -m option is
specified, ifconfig pushes all modules on the
stream associated with the interface in the
specified order. For example, module mod2 is
pushed on top of module mod1. The modules are
pushed between IP and network drivers. If the -m
option is not specified, the modules (if any)
specified in the DEFAULT_INTERFACE_MODULES
variable are used for configuring the interface
(see netconf and netconf-ipv6 in
/etc/rc.config.d/).
address Either a host name present in the host name
database (see hosts(4)), or a DARPA Internet
Hewlett-Packard Company - 1 - HP-UX 11i Version 2: Mar 2005
ifconfig(1M) ifconfig(1M)
address expressed in Internet standard dot
notation (see inet(3N)) for an IPv4 address and in
colon notation (see inet6(3N)) for an IPv6
address.
address_family Name of protocol on which naming scheme is based.
An interface can receive transmissions in
differing protocols, each of which may require
separate naming schemes. The address_family,
blah.........blah..... -
WAD: 'Update Data' command code
Hi,
I'd like to add a button to my web application which would call a script function to perform the 'update data' command on the web layout. Currently, this command is only available via right-click --> Data Entry Active --> Update Data within the layout.
Has anyone done this? I ultimately like to enable the user to update the data in the layout (calculations included) after making a change simply by clicking Enter. Is this possible?
Thanks,
JakeThanks for the suggestion Priya. Unfortunately the SAVE_DATA command will not work in my scenario. In this case, we do not want to actually write data back to the cube. We only want to refresh the data in the planning layout to see how totals and other calculated fields will be impacted.
I believe REFRESH_DATA will do this.
It appears to be working, unfortunately my solution (A refresh button with the flag marked to execute on Enter) has created another problem. I have several long planning layouts which require the user to scroll to the right to enter data for future years. If the user hits Enter to refresh the data, the screen refreshes back to the upper-left corner of the screen. In fact, it refreshes to the exact coordinates of the refresh button which was executed by typing Enter. Ideally, I would like the screen to refresh to the last data entry location, as the scrolling gets very frustrating.
Have you (or anyone) seen this problem and can you provide a recommendation to solve it?
Thanks again for your help,
Jake -
How to execute Linux OS command from ODI
We have installed Oracle data integrator on windows machine and want to execute linux OS command in a procedure or scenario from ODI .
How could i do that ?
I can see os command elements but they do not work, only windows commands work.There should be linux technology i thinkObviously you can execute Unix OS commands only on Unix OS. Why do you expect Windows to understand it?
The solution in your case would be executing your ODI scenarios with an Agent installed on Unix machine.
Cheers -
Stopping OC4J with a Linux kill command -- is it OK?
Hello All,
Has anyone had any problems with stopping OC4J using the Linux kill command?
Is this the appropriate way to stop OC4J in Linux?
We've had a problem several times where OC4J did not seem to stop completely, and, subsequently, wouldn't start.
I decided to try and avoid using the kill command and instead use the "stop" command employed by MS Windows installations.
But in Linux it produced errors in the oc4j log file.
The stop command I am testing right now in Linux is identical to its counterpart in Windows. It looks like this:
java -jar $ORACLEBI_HOME/oc4j_bi/j2ee/home/admin.jar ormi://localhost:23791 oc4jadmin `~/.ops/.ex oc4jadmin` -shutdown
The `~/.ops/.ex oc4jadmin` part is just a crafty Linux way of hiding the password.
The errors generated in OracleBIData/web/log/javahost.out.log are as follows:
<br>
<br>
<br>
<br>
Mon Apr 27 18:24:14 PDT 2009
Stopping Java Host...
Apr 27, 2009 6:24:14 PM MessageProcessorImpl processMessage
WARNING: Unexpected exception. Connection will be closed
java.io.EOFException
at com.siebel.analytics.web.sawconnect.sawprotocol.SAWProtocol.readInt(SAWProtocol.java:167)
at com.siebel.analytics.javahost.MessageProcessorImpl.processMessage(MessageProcessorImpl.java:133)
at com.siebel.analytics.javahost.Listener$Job.run(Listener.java:223)
at com.siebel.analytics.javahost.standalone.SAJobManagerImpl.threadMain(SAJobManagerImpl.java:205)
at com.siebel.analytics.javahost.standalone.SAJobManagerImpl$1.run(SAJobManagerImpl.java:153)
at java.lang.Thread.run(Thread.java:619)
Apr 27, 2009 6:24:15 PM MessageProcessorImpl processMessage
WARNING: Unexpected exception. Connection will be closed
java.io.EOFException
at com.siebel.analytics.web.sawconnect.sawprotocol.SAWProtocol.readInt(SAWProtocol.java:167)
at com.siebel.analytics.javahost.MessageProcessorImpl.processMessage(MessageProcessorImpl.java:133)
at com.siebel.analytics.javahost.Listener$Job.run(Listener.java:223)
at com.siebel.analytics.javahost.standalone.SAJobManagerImpl.threadMain(SAJobManagerImpl.java:205)
at com.siebel.analytics.javahost.standalone.SAJobManagerImpl$1.run(SAJobManagerImpl.java:153)
at java.lang.Thread.run(Thread.java:619)
waiting for javahost process to complete (pid:28305)
./shutdown.sh: line 51: wait: pid 28305 is not a child of this shell
Apr 27, 2009 6:24:16 PM Startup shutdown
INFO: Server shutdown request received.
Apr 27, 2009 6:24:16 PM Acceptor listen
SEVERE: Server socket was closed.
java.nio.channels.AsynchronousCloseException
at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:185)
at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:152)
at com.siebel.analytics.javahost.Acceptor.listen(Acceptor.java:92)
at com.siebel.analytics.javahost.ApplicationImpl.listen(ApplicationImpl.java:41)
at com.siebel.analytics.javahost.standalone.Main.listen(Main.java:33)
at com.siebel.analytics.javahost.standalone.Main.main(Main.java:28)
Apr 27, 2009 6:24:16 PM Application listen
INFO: Stopped listening socket port
Apr 27, 2009 6:24:16 PM Application listen
INFO: Closed open sockets
Apr 27, 2009 6:24:16 PM Main listen
INFO: Canceled pending jobs. Exiting
<br>
<br>
<br>
<br>
I have absolutely no idea what these error messages mean.
I saw that there is an option to do a "-shutdown force" as opposed to just "-shutdown". Should I use that?
Or should I revert back to using the Linux kill command?
Thank you very much for any help or insight.
-sbHello All,
The start and stop scripts that I posted earlier in this discussion thread are outdated. In fact, the stop script is wrong.
The ones I am posting below are actually what I am using right now. These are still work in progress, though.
Just wanted to post the correct stuff in case someone is interested.
obistart.sh
<br>
<br>
# Start the BI server.
echo "$(basename "$0"): Now initiating the BI server startup..."
$ORACLEBI_HOME/setup/run-sa.sh start
success=
while \[ ! $success \]
do
status=`tail -1 $ORACLEBI_HOME/server/Log/NQServer.log 2>/dev/null`
\[\[ $status =~ "Oracle BI Server started" \]\] && success=yes
done
echo $status
echo
# Start the presentation server.
echo "$(basename "$0"): Now initiating the presentation server startup..."
$ORACLEBI_HOME/setup/run-saw.sh start
sleep 3
echo
# Start the OC4J server.
echo "$(basename "$0"): Now initiating the OC4J server startup..."
nohup $ORACLEBI_HOME/setup/oc4j -start > $ORACLEBI_HOME/setup/nohup_oc4j_start.out &
echo $! > $ORACLEBI_HOME/setup/nohup_oc4j_start.pid
<br>
<br>
obistop.sh
<br>
<br>
# Stop OBIEE BI server.
echo "$(basename "$0"): Now initiating the BI server shutdown..."
$ORACLEBI_HOME/setup/run-sa.sh stop
sleep 3
echo
# Stop OBIEE Presentation server.
echo "$(basename "$0"): Now initiating the presentation server shutdown..."
$ORACLEBI_HOME/setup/run-saw.sh stop
sleep 3
echo
# Stop OBIEE oc4j application server.
echo "$(basename "$0"): Now initiating the OC4J server shutdown..."
\[\[ -e $ORACLEBI_HOME/setup/nohup_oc4j_stop.out \]\] && rm -f $ORACLEBI_HOME/setup/nohup_oc4j_stop.out
$ORACLEBI_HOME/setup/oc4j -shutdown -port 23791 -password `~/.ops/.ex oc4jadmin` 2>$ORACLEBI_HOME/setup/nohup_oc4j_stop.out
if \[ `grep Error nohup_oc4j_stop.out` \]
then
echo "$(basename "$0"): OC4J shutdown error. The server might be already down. Look in $ORACLEBI_HOME/setup/nohup_oc4j_stop.out for info."
exit 1
fi
oc4j_pid=`cat $ORACLEBI_HOME/setup/nohup_oc4j_start.pid`
cpid=`ps no-headers ppid $oc4j_pid | head -n1 | awk '{print $1}'`
\[\[ -n $cpid \]\] && kill $cpid
\[\[ -n $oc4j_pid \]\] && kill $oc4j_pid
<br>
<br>
Thank you.
-sb -
Is there a way that I can run a snmpwalk / isi devices (to find the status of the disk drives in islon) / any Linux bash command using a 2 state monitor Unix/Linux shell command and target a storage device (Isilon in my case) and not target a Unix/Linux
machine. I tried creating one and it complained saying,
Is there a way I could run a bash command in my isilon storage and use the ouput to determine the state of the monitor? Please let me know
Hari VFor Unix/Linux shell command in Operation Manager to monitor 2 state, you can refer to below link
http://contoso.se/blog/?p=2680
http://stefanroth.net/2012/10/21/scom-2012-linux-two-state-monitor-with-script-in-script/
http://operatingquadrant.com/2012/02/01/opsmgr-2012-unixlinux-authoring-templates-more-information-on-the-shell-command-templates/#more-746
Please remember, if you see a post that helped you please click (Vote As Helpful" and if it answered your question, please click (Mark As Answer). -
I need help, do not want to lose my data, PLEASE HELP IN SPANISH
Una vez que el dispositivo está pidiendo ser restaurado con iTunes ... ya es demasiado tarde para salvar nada ... y usted debe continuar con la recuperación de ...
Vea aquí> http://support.apple.com/kb/HT1808
Es posible que tenga que probar más de una vez ... Asegúrese de seguir todos los pasos ...
Tómese su tiempo ... Preste especial atención a los pasos 3 y 4.
Para minimizar la pérdida ...
Después de haber recuperado su dispositivo ...
Re-sincronizar su contenido o restauración de la última copia de seguridad ...
Restaurar desde copia de seguridad> http://support.apple.com/kb/ht1766
Once the Device is asking to be Restored with iTunes... it is too late to save anything... and you must continue with the Recovery...
See Here > http://support.apple.com/kb/HT1808
You may need to try this More than Once... Be sure to Follow ALL the Steps...
Take your time... Pay particular attention to Steps 3 and 4.
To minimise loss...
After you have Recovered your Device...
Re-Sync your Content or Restore from the most recent Backup...
Restore from Backup > http://support.apple.com/kb/ht1766 -
Hard Drive Failure on HP DV 6000 Pavilion laptop - Need Data Recovery Help
HP Pavilion DV 6108 NR, RG365UA, purchased in late 2006 at Best Buy, with Windows XP, upgraded to Service Pack 3. It has a Fujitsu hard disk, 60 gigabyte, partitioned into C: and a Recovery D:.
Windows tries to boot up, but goes to blue screen with the message: "Unmountable Boot Volume" for one second, then just keeps recycling until I force a shutdown.
BIOS Phoenix, hard drive test result: " #1-08 Fail "
I ran a disk analysis/recovery program on the Cdrive and it seemed to show the directory structure intact, and it was able to recover some files. I was using the free one from Seagate (which only recovers small files). The second pass didn't run so well, and during the third run the program said I should not proceed further, and I should contact a professional disk recovery company.
However, the D drive seems to be intact, so, I wonder if the disk is corrupted or just some aspect of the logical C drive is bad.
How can I get the D: to run the recovery software on it? The recovery disks, made by Best Buy, only proceed to the R / F / Q option screen, and when I press R, I get a blue screen every time.
Tapping the F10 key during startup gets me nowhere. Ditto the F11 key.
I dont care about the hard disk; it is the data (files, docs, images, etc) that I want.
I contacted HP to order recovery disks but they are no longer available for my computer.
Any suggestions would be greatly appreciated!
Jon
This question was solved.
View Solution.Update...
I found a website that offers the following:
http://www.computersurgeons.com/p-13442-recovery-kit-435422-001-for-hp-model-number-dv6108nr.aspx
Recovery Kit 435422-001 For HP Model Number dv6108nr
Price: $27.00
Recovery Kit Set (An Entire Image of the Computer hard drive when the computer was new)
But I wonder how useful it would be. Early XP , no doubt. And if my hard disk problem is a mechanical fault, would any recovery disk even work? The disks made by Best Buy when I bought mine new in 2006 don't do anything more than go to the R /F/ Q screen and then goes to a blue screen when I press R (to recover the OS and apps and data files). And, as I wrote, it is the data that I want, not the disk drive. -
i was updating software and suddenly my IPHONE started asking for I tunes on mobile screen , how can i get by screen back or How i can restore without loosing data , I m more worried about data , Please help in resolutio
What exactly are you seeing on the phone's screen ? If the iTunes icon and cable then the phone is in recovery mode, in which case it's too late to take a new backup or to copy any content off the phone - you will have to connect the phone to your computer's iTunes and reset it back to factory defaults, after which you can restore to the last backup that you took or just resync your content to it
-
I just downloaded 950 photos on iPhoto and deleted them off my camera and now under last import there is only 4 photos and i can't find the others?? There is a whole bunch of blank events in the library with no photos in them all with todays date? Help!!
Yes - you need a min of 10 GB just to operate - with just 1 you certainly can lose photos and other critical things - you need to make space immediately - probably by moving your iPhoto library to a volume formatted Mac OS extended -
Moving the iPhoto library is safe and simple - quit iPhoto and drag the iPhoto library intact as a single entity to the external drive - depress the option key and launch iPhoto using the "select library" option to point to the new location on the external drive - fully test it and then trash the old library on the internal drive (test one more time prior to emptying the trash)
And be sure that the External drive is formatted Mac OS extended (journaled) (iPhoto does not work with drives with other formats) and that it is always available prior to launching iPhoto
And backup soon and often - having your iPhoto library on an external drive is not a backup and if you are using Time Machine you need to check and be sure that TM is backing up your external drive
LN -
Charts appear in front of date picker, help messages, developer buttons
In Apex 4.1, with Internet Explorer, if we have charts on the form, objects like date-pickers, help text, etc. appear behind the chart. They pop up (or drop down) in front of the chart's region, but behind the chart. So if I have a search criteria region at the top, and a chart region below it, if the chart is displayed, and the user clicks on the date picker, then the date picker pops up, but any portion of it that should overlap with the chart itself is hidden behind the chart, so the users cannot click on a date later in the month.
Also, if there is help text provided for an item in the search criteria region, then the help text pop-up box appears partially or completely behind the chart (though in front of the chart's region.
You can also see this with the developer's buttons at the bottom of the screen - they stay in front of the regions, but behind any chart.
Is there a way to fix this?
I can get around the date picker if I choose the Classic Date Picker, but I don't know how to get around the other items.
Thanks!Maybe it is just because there is no space enough to display both month and year. Is it possible to increase the width of the calendar box ?
Francois -
iphone 5 keeps crashen an reboots after 3-4 mins have restored it an still re boots.i hav the latest up dates any help cheers.
PhotogYogi wrote:
I Have the same issue on a brand new iPad mini 2. My battery is only lasting up to 5 hours. I went on chat with Apple last night and they said my battery is fine and its a Safari issue. I'm literally losing 1% every 3-4 minutes. I tried recalibrating my battery, signing out of iCloud, shutting off all locations, turning off background app refresh, restoring network settings, restoring all, and finally restoring from iTunes with no luck. This is just awful. I got this iPad so I could use it on my long flight for a trip I have coming up, and unfortunately, it's not going to last that long, plus I'm concerned about how many times i will be recharging my battery because of this since battery's do have a life cycle dependent on the number of charges. This is frustrating and needs to be fixed ASAP and addressed by Apple.
By the way, Apple told me to bring my device to the Apple Store because it's still under warranty. That's great and all, but I'm going to waste my time if there is no fix for this issue.
Ok so you want Apple to address the problem, but yet you don't want to take it to them just in case they can't fix it? What if they can fix it? Complaining here certainly won't fix it.
Maybe you are looking for
-
One of my pages "sticks". I can't click on other pages...
Please look at my site. After you click on "IN DOROTHY'S WORDS" you can't go back and click on any other page... help! http://web.mac.com/poppyvictoria/iWeb/Site%2012/HELP%20THE%20TORTOISE.html
-
Can U Get Different Key Colors For pro 13"
Can U Get Different Key Colors For pro 13"
-
IViews in NW Enterprise Search 7.0 SP0
Are there going to be iViews available in NW Enterprise Search 7.0 SP0 doe use outside of the ES WebDynPro app?
-
A fillable PDF Form on BI Launch Pad acting strange
I apologize in advance if this is the wrong place, but this crosses 2 paths. PDf Forms and Launch Pad Hi All, I have a PDF Form create in LiveCycle and I wanted to add it to the CMC so users of the Launch Pad could all have access in one place to all
-
Photoshop/ Adobe Master Collection-PC-System-Zusammenstellung
Einen schönen guten Tag, Ich möchte mir in nächster Zeit einen Rechner zum Arbeiten zulegen. (-> Windows 7 Professional 64 Bit). Voranging wird er professionell für Photoshop genutzt werden: Ich erstelle großformatige Montagen, mit einer Vielzahl an