Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • Don't think you can. Commented Jan 27, 2016 at 9:47
  • is there any way out? Commented Jan 27, 2016 at 9:48
  • If your shell supports the if [ "$src" -nt "$dst ]; then … construct you can use that one (however, not it's not in POSIX). Do you have pax or rsync available? That might be the easiest solution. Commented Jan 27, 2016 at 9:55
  • I haven't tried pax yet. But I am unable to install rsync on my solaris system Commented Jan 27, 2016 at 10:00
  • 1
    "cp" on Linux is usually from the GNU coreutils which are also available for Solaris - can you build & install software like that on your Solaris machine or are your privileges limited? Commented Jan 27, 2016 at 16:37