You don't need to use $? when checking a command's return value. You can check the command directly.
Or even
If anything goes wrong, it will likely print an error to standard error. If you redirect standard error into a logfile yourself before you run it, all error messages will go into it.
Hello,
I want to import an Oracle database file on my fresh DB, bought before successfully with exp command.
But is it possible to import some tables from the dmp file, because they are too large and it's so long !?
I didn't find any option in imp command to make exception on certain tables...... (1 Reply)
hi,
pls could you help me with one program in KSH ( i have sunOS).
I need to create an If clause, that prints an error message and filenames, when in a directory are found some files of null size (find . -type f -size 0 ).
thanks (3 Replies)
Hi,
I want to remove a directory recursively except the inside directories calles .SYNC (designsync dirs) I am looking for something like:
\rm -rf < find . * | grep -v .SYNC
The find works ok but I do not know how to redirect it.
Please help.
Regards,
Ziv:rolleyes: (1 Reply)
Hi,
I want to remove a directory recursively except the inside directories calles .SYNC (designsync dirs) I am looking for something like:
\rm -rf < find . * | grep -v .SYNC
The find works ok but I do not know how to redirect it.
Please help.
Regards,
Ziv (3 Replies)
Hi,
I call a java program from a cron job and i need to display the exceptions or Errors thrown by java(basically stacktrace) in the unix/linux console in the red color.Is it possible to do that? If so, pls. give me some pointers how to do that.
eg:
Exception in thread "main"... (0 Replies)
So I'm currently developing an automated test system and I'm verifying my results by running a set of baselined data through and comparing the output (which is in a txt file) to a baseline results file. So of course I'm just using the diff command. Unfortunately each time I run the test there are 2... (3 Replies)
Hi everyone,
I am using AIX 6.1. There are exception codes defined in header file
sys/m_except.hAlso, in the documentation (in "Understanding exception handling") it says:
If no exception handler is currently defined when an exception occurs, typically one of two things happens.
If... (0 Replies)
hello,
I am getting SIGUP Exceptions during an execution of a procedure. Below is the log:
Type: SignalException Message: SIGHUP Backtrace: 12:38 PM Action threw an exception: SIGHUP 12:38 PM Action threw an exception: SIGHUP
E, ERROR -- : Type: SignalException Message: SIGHUP... (1 Reply)
Hello:
I have a very basic question. I'd like to select all files except for one file. For example, say I want to move all of the files in my current directory to a subdirectory called archive, I would use mv ./* archive/ But what if I want to move all files except for README.txt? Is there an... (19 Replies)
I am totaly new to RegEx, but I need to extract emails with RegEx from text file
Some difficulties:
1. “@”symbol has been substituted for “ at ”,"AT" or "(at)"
2. I do not need any email with domain "myoldcompany"
I found that with these I can found any emails:
"^+@+\.+$"
How to do... (1 Reply)
Discussion started by: AIX_30
1 Replies
LEARN ABOUT DEBIAN
app::nopaste::service::ssh
App::Nopaste::Service::ssh(3pm) User Contributed Perl Documentation App::Nopaste::Service::ssh(3pm)NAME
App::Nopaste::Service::ssh - copies files to your server using scp
AUTHOR
Kevin Falcone "<falcone@cpan.org>"
Thomas Sibley "<trs@bestpractical.com>"
ENVIRONMENT VARIABLES
NOPASTE_SSH_SERVER
The hostname to which you ssh. The left-hand side of the colon in the scp. For example: "sartak.org".
NOPASTE_SSH_DOCROOT
The path on disk for your pastes. For example: "public_html/paste".
NOPASTE_SSH_WEBPATH
The path for URLs. For example: "http://sartak.org/paste".
NOPASTE_SSH_MODE
Octal permissions mode to set for the temporary file before uploading. For example: 0644.
NOPASTE_SSH_USE_DESCRIPTION
Use the supplied description in the paste filename for easier identification of pastes. Defaults to the source filename, if any, but
is overridden by an explicit "-d" or "--description" command line argument.
APACHE CONFIGURATION RECOMMENDATIONS
The following is a recommended Apache configuration you can drop into ".htaccess" in your paste dir.
RemoveHandler .cgi
RemoveHandler .pl
AddDefaultCharset utf-8
Options -ExecCGI -FollowSymLinks -Includes -MultiViews
It prevents common means of script execution so that ".pl" and ".cgi" files won't run and defaults the character set to UTF-8 so browsers
don't have to guess wrong.
perl v5.14.2 2011-08-30 App::Nopaste::Service::ssh(3pm)